Skip to content

Commit a84b1af

Browse files
committed
Add _set_cog to Command
1 parent 6170c6b commit a84b1af

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

discord/ext/commands/core.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,6 +1144,9 @@ async def can_run(self, ctx: Context) -> bool:
11441144
finally:
11451145
ctx.command = original
11461146

1147+
def _set_cog(self, cog):
1148+
self.cog = cog
1149+
11471150
class GroupMixin(Generic[CogT]):
11481151
"""A mixin that implements common functionality for classes that behave
11491152
similar to :class:`.Group` and are allowed to register commands.

0 commit comments

Comments
 (0)