mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2026-04-25 12:26:13 -04:00
Fix remaining issues with internal Downloader API (#6721)
This commit is contained in:
@@ -474,15 +474,20 @@ class Downloader(commands.Cog):
|
||||
)
|
||||
+ message
|
||||
)
|
||||
# "---" added to separate cog install messages from Downloader's message
|
||||
await self.send_pagified(ctx, f"{message}{deprecation_notice}\n---")
|
||||
for cog in install_result.installed_cogs:
|
||||
if cog.install_msg:
|
||||
await ctx.send(
|
||||
cog.install_msg.replace("[p]", ctx.clean_prefix).replace(
|
||||
"[botname]", ctx.me.display_name
|
||||
)
|
||||
|
||||
message += deprecation_notice
|
||||
cogs_with_install_msg = [cog for cog in install_result.installed_cogs if cog.install_msg]
|
||||
if cogs_with_install_msg:
|
||||
# "---" added to separate cog install messages from Downloader's message
|
||||
message += "\n---"
|
||||
await self.send_pagified(ctx, message)
|
||||
|
||||
for cog in cogs_with_install_msg:
|
||||
await ctx.send(
|
||||
cog.install_msg.replace("[p]", ctx.clean_prefix).replace(
|
||||
"[botname]", ctx.me.display_name
|
||||
)
|
||||
)
|
||||
|
||||
@cog.command(name="uninstall", require_var_positional=True)
|
||||
async def _cog_uninstall(self, ctx: commands.Context, *cogs: InstalledCog) -> None:
|
||||
|
||||
Reference in New Issue
Block a user