Browse Source
Update discord/app_commands/commands.py
pull/10172/head
Danny
4 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
discord/app_commands/commands.py
|
|
@ -2520,7 +2520,7 @@ def guild_only(func: Optional[T] = None) -> Union[T, Callable[[T], T]]: |
|
|
|
# Ensure that only Guild context is allowed |
|
|
|
allowed_contexts.guild = False # Enable guild context |
|
|
|
allowed_contexts.private_channel = False # Disable private channel context |
|
|
|
allowed_contexts.dm_channel = False # Disable DM context |
|
|
|
allowed_contexts.dm_channel = False # Disable DM context |
|
|
|
|
|
|
|
return f |
|
|
|
|
|
|
|