Fix remaining issues with internal Downloader API (#6721)

This commit is contained in:
Jakub Kuczys
2026-04-07 23:57:49 +02:00
committed by GitHub
parent 4032648dcc
commit 6ceb45b35c
2 changed files with 22 additions and 16 deletions
+13 -8
View File
@@ -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: