File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -356,7 +356,6 @@ def __init__(
356
356
self .subcommand_name = self .invoked_subcommand = self .subcommand_passed = None
357
357
self .subcommand_group = self .invoked_subcommand_group = self .subcommand_group_passed = None
358
358
self .command_id = _json ["data" ]["id" ]
359
- self ._discord = _discord
360
359
361
360
super ().__init__ (_http = _http , _json = _json , _discord = _discord , logger = logger )
362
361
@@ -366,8 +365,7 @@ def cog(self) -> typing.Optional[commands.Cog]:
366
365
Returns the cog associated with the command invoked, if any.
367
366
"""
368
367
369
- # noinspection PyUnresolvedReferences
370
- cmd_obj = self ._discord .slash .commands [self .command ] # above line, thanks PyCharm
368
+ cmd_obj = self .bot .slash .commands [self .command ] # noqa
371
369
372
370
if isinstance (cmd_obj , (model .CogBaseCommandObject , model .CogSubcommandObject )):
373
371
return cmd_obj .cog
You can’t perform that action at this time.
0 commit comments