Skip to content

Commit d1b2709

Browse files
Update discord_slash/client.py
Co-authored-by: Sam <[email protected]>
1 parent 4fd02ff commit d1b2709

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

discord_slash/client.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,12 @@ def wrapper(cmd):
753753

754754
def permission(self, guild_id: int, permissions: list):
755755
"""
756-
Decorator that add permissions
756+
Decorator that add permissions. This will set the permissions for a single guild, you can use it more than once for each command.
757+
:param guild_id: ID of the guild for the permissions.
758+
:type guild_id: int
759+
:param permissions: Permission requirements of the slash command. Default ``None``.
760+
:type permissions: dict
761+
757762
"""
758763
def wrapper(cmd):
759764
if not getattr(cmd, "__permissions__", None):

0 commit comments

Comments
 (0)