From 7c37e9e84f696438afc04876b81d6f4ed5f9148f Mon Sep 17 00:00:00 2001 From: Danny <1695103+Rapptz@users.noreply.github.com> Date: Fri, 20 Jun 2025 14:52:34 -0400 Subject: [PATCH] Update discord/app_commands/commands.py --- discord/app_commands/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/app_commands/commands.py b/discord/app_commands/commands.py index 3a6f474fe..f82f7eed7 100644 --- a/discord/app_commands/commands.py +++ b/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