mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-08 04:38:42 +00:00
[commands] Fix Command.cog being reset after update
This commit is contained in:
parent
ce01033e06
commit
b1571ccc25
@ -449,7 +449,9 @@ class Command(_BaseCommand, Generic[CogT, P, T]):
|
||||
of parameters in that they are passed to the :class:`Command` or
|
||||
subclass constructors, sans the name and callback.
|
||||
"""
|
||||
cog = self.cog
|
||||
self.__init__(self.callback, **dict(self.__original_kwargs__, **kwargs))
|
||||
self.cog = cog
|
||||
|
||||
async def __call__(self, context: Context, *args: P.args, **kwargs: P.kwargs) -> T:
|
||||
"""|coro|
|
||||
|
Loading…
x
Reference in New Issue
Block a user