mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[Downloader] Improve InstalledCog converter's error message (#3409)
* Update converters.py * Create 3409.misc.rst
This commit is contained in:
parent
8f04fd436f
commit
c7fd64e0c8
1
changelog.d/downloader/3409.misc.rst
Normal file
1
changelog.d/downloader/3409.misc.rst
Normal file
@ -0,0 +1 @@
|
||||
Improve error message when user passes cog that isn't installed to a command that only accepts installed cogs.
|
||||
@ -15,6 +15,8 @@ class InstalledCog(InstalledModule):
|
||||
|
||||
cog = discord.utils.get(await downloader.installed_cogs(), name=arg)
|
||||
if cog is None:
|
||||
raise commands.BadArgument(_("That cog is not installed"))
|
||||
raise commands.BadArgument(
|
||||
_("Cog `{cog_name}` is not installed.").format(cog_name=arg)
|
||||
)
|
||||
|
||||
return cog
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user