From 6e202749d6386ca626935af3c782080d6928d1d1 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 1 Aug 2023 18:15:36 -0400 Subject: [PATCH] [commands] Add fallback behaviour for CurrentGuild parameter --- discord/ext/commands/parameters.py | 1 + 1 file changed, 1 insertion(+) diff --git a/discord/ext/commands/parameters.py b/discord/ext/commands/parameters.py index 56d165a7b119..d3bb3036c936 100644 --- a/discord/ext/commands/parameters.py +++ b/discord/ext/commands/parameters.py @@ -306,6 +306,7 @@ def default_guild(ctx: Context[Any]) -> Guild: displayed_default='', converter=GuildConverter, ) +CurrentGuild._fallback = True class Signature(inspect.Signature):