Skip to content

Commit

Permalink
[commands] Add fallback behaviour for CurrentGuild parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Rapptz committed Aug 10, 2023
1 parent 1432291 commit 6e20274
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions discord/ext/commands/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ def default_guild(ctx: Context[Any]) -> Guild:
displayed_default='<this server>',
converter=GuildConverter,
)
CurrentGuild._fallback = True


class Signature(inspect.Signature):
Expand Down

0 comments on commit 6e20274

Please sign in to comment.