mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[Downloader] findcog no longer attempts to find cogs for commands without them (#2970)
* findcog no longer attempts to find cogs for commands without them * changelog * full stop
This commit is contained in:
parent
af97175839
commit
62dcebff94
1
changelog.d/downloader/2902.bugfix.rst
Normal file
1
changelog.d/downloader/2902.bugfix.rst
Normal file
@ -0,0 +1 @@
|
|||||||
|
findcog no longer attempts to find a cog for commands without one.
|
||||||
@ -590,12 +590,16 @@ class Downloader(commands.Cog):
|
|||||||
return
|
return
|
||||||
|
|
||||||
# Check if in installed cogs
|
# Check if in installed cogs
|
||||||
cog_name = self.cog_name_from_instance(command.cog)
|
cog = command.cog
|
||||||
installed, cog_installable = await self.is_installed(cog_name)
|
if cog:
|
||||||
if installed:
|
cog_name = self.cog_name_from_instance(cog)
|
||||||
msg = self.format_findcog_info(command_name, cog_installable)
|
installed, cog_installable = await self.is_installed(cog_name)
|
||||||
|
if installed:
|
||||||
|
msg = self.format_findcog_info(command_name, cog_installable)
|
||||||
|
else:
|
||||||
|
# Assume it's in a base cog
|
||||||
|
msg = self.format_findcog_info(command_name, cog)
|
||||||
else:
|
else:
|
||||||
# Assume it's in a base cog
|
msg = _("This command is not provided by a cog.")
|
||||||
msg = self.format_findcog_info(command_name, command.cog)
|
|
||||||
|
|
||||||
await ctx.send(box(msg))
|
await ctx.send(box(msg))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user