From 4393ec241d288dff9295f05d1e96d66f622d875d Mon Sep 17 00:00:00 2001 From: davfsa Date: Thu, 18 Jul 2024 00:40:00 +0200 Subject: [PATCH] Fix codeblock for `Permissions` class (#1967) Signed-off-by: davfsa --- hikari/permissions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hikari/permissions.py b/hikari/permissions.py index 317917bced..1aaf3bc867 100644 --- a/hikari/permissions.py +++ b/hikari/permissions.py @@ -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 = ( @@ -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