Skip to content

Commit 9227534

Browse files
committed
open up perms
1 parent 281bb91 commit 9227534

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def interact(raw_request):
6969
channelID = raw_request["channel_id"]
7070

7171
# A boolean variable that determines if the user who executed the command is an administrator or not
72-
admin = (int(raw_request["member"]["permissions"]) & 0x8) == 0x8
72+
admin = (int(raw_request["member"]["permissions"]) & 0x20000038) > 0
7373

7474
# The command being executed
7575
command_name = data["name"]

0 commit comments

Comments
 (0)