We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fd02ff commit d1b2709Copy full SHA for d1b2709
discord_slash/client.py
@@ -753,7 +753,12 @@ def wrapper(cmd):
753
754
def permission(self, guild_id: int, permissions: list):
755
"""
756
- Decorator that add permissions
+ 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
+
762
763
def wrapper(cmd):
764
if not getattr(cmd, "__permissions__", None):
0 commit comments