mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 10:17:59 -05:00
Prevent error on empty install message. (#3024)
* Prevent error on empty install message. * Create 3024.bugfix.rst
This commit is contained in:
@@ -345,7 +345,7 @@ class Downloader(commands.Cog):
|
||||
"Cog `{cog_name}` successfully installed. You can load it with `{prefix}load {cog_name}`"
|
||||
).format(cog_name=cog_name, prefix=ctx.prefix)
|
||||
)
|
||||
if cog.install_msg is not None:
|
||||
if cog.install_msg:
|
||||
await ctx.send(cog.install_msg.replace("[p]", ctx.prefix))
|
||||
|
||||
@cog.command(name="uninstall", usage="<cogs>")
|
||||
|
||||
Reference in New Issue
Block a user