Browse Source

[commands] Fix flag_converter attribute not being properly copied

pull/8026/head
Rapptz 3 years ago
parent
commit
06e8683d01
  1. 1
      discord/ext/commands/hybrid.py

1
discord/ext/commands/hybrid.py

@ -297,6 +297,7 @@ class HybridAppCommand(discord.app_commands.Command[CogT, P, T]):
def _copy_with(self, **kwargs) -> Self:
copy: Self = super()._copy_with(**kwargs) # type: ignore
copy.wrapped = self.wrapped
copy.flag_converter = self.flag_converter
return copy
def copy(self) -> Self:

Loading…
Cancel
Save