mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
Prevent error on empty install message. (#3024)
* Prevent error on empty install message. * Create 3024.bugfix.rst
This commit is contained in:
parent
37f27d8ae4
commit
05eba603a5
1
changelog.d/3024.bugfix.rst
Normal file
1
changelog.d/3024.bugfix.rst
Normal file
@ -0,0 +1 @@
|
||||
cog install will no longer error if a cog creator has an empty install message
|
||||
@ -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>")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user