Skip to content

Commit 95faa16

Browse files
committed
Default permissions to dict and not list.
1 parent 9880afc commit 95faa16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord_slash/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def __init__(self, name, cmd): # Let's reuse old command formatting.
195195
super().__init__(name, cmd)
196196
self.has_subcommands = cmd["has_subcommands"]
197197
self.default_permission = cmd["default_permission"]
198-
self.permissions = cmd["api_permissions"] or []
198+
self.permissions = cmd["api_permissions"] or {}
199199

200200

201201
class SubcommandObject(CommandObject):

0 commit comments

Comments
 (0)