Browse Source
Fixed double statement
allowed_contexts.dm_channel = True was stated twice, removed the second one.
pull/10172/head
shea
3 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
2 deletions
-
discord/app_commands/commands.py
|
@ -2627,8 +2627,7 @@ def dm_only(func: Optional[T] = None) -> Union[T, Callable[[T], T]]: |
|
|
allowed_contexts.guild = False # Disable guild context |
|
|
allowed_contexts.guild = False # Disable guild context |
|
|
allowed_contexts.private_channel = False # Disable private channel context |
|
|
allowed_contexts.private_channel = False # Disable private channel context |
|
|
allowed_contexts.dm_channel = True # Enable DM context |
|
|
allowed_contexts.dm_channel = True # Enable DM context |
|
|
|
|
|
|
|
|
allowed_contexts.dm_channel = True |
|
|
|
|
|
return f |
|
|
return f |
|
|
|
|
|
|
|
|
# Check if called with parentheses or not |
|
|
# Check if called with parentheses or not |
|
|