Skip to content

Commit

Permalink
Fix codeblock for Permissions class (#1967)
Browse files Browse the repository at this point in the history
Signed-off-by: davfsa <[email protected]>
  • Loading branch information
davfsa authored Jul 17, 2024
1 parent e14f429 commit 4393ec2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hikari/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Permissions(enums.Flag):
--------
You can create an enum which combines multiple permissions using the bitwise OR operator (`|`):
```py
```py
my_perms = Permissions.MANAGE_CHANNELS | Permissions.MANAGE_GUILD
required_perms = (
Expand All @@ -52,7 +52,7 @@ class Permissions(enums.Flag):
| Permissions.BAN_MEMBERS
| Permissions.MANAGE_GUILD
)
```
```
To find the intersection of two sets of permissions, use the bitwise AND
operator (`&`) between them. By then applying the `==` operator, you can check if all
Expand Down

0 comments on commit 4393ec2

Please sign in to comment.