mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 11:48:55 -05:00
[V3 Downloader] Always remove cog from installed when using cog uninstall (#2595)
This commit is contained in:
parent
3d498a74ba
commit
da5fd7699e
@ -346,10 +346,10 @@ class Downloader(commands.Cog):
|
|||||||
if poss_installed_path.exists():
|
if poss_installed_path.exists():
|
||||||
ctx.bot.unload_extension(real_name)
|
ctx.bot.unload_extension(real_name)
|
||||||
await self._delete_cog(poss_installed_path)
|
await self._delete_cog(poss_installed_path)
|
||||||
await self._remove_from_installed(cog)
|
|
||||||
uninstalled_cogs.append(inline(real_name))
|
uninstalled_cogs.append(inline(real_name))
|
||||||
else:
|
else:
|
||||||
failed_cogs.append(real_name)
|
failed_cogs.append(real_name)
|
||||||
|
await self._remove_from_installed(cog)
|
||||||
|
|
||||||
message = ""
|
message = ""
|
||||||
if uninstalled_cogs:
|
if uninstalled_cogs:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user