[commands] Fix flag_converter attribute not being properly copied

This commit is contained in:
Rapptz 2022-05-11 03:30:20 -04:00
parent cc3e714338
commit 06e8683d01

View File

@ -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: