mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
Dispatch a cog unload event [on_cog_remove] (#5570)
Co-authored-by: Flame442 <34169552+Flame442@users.noreply.github.com>
This commit is contained in:
parent
67f4dd5201
commit
c2da29c93e
@ -1706,6 +1706,7 @@ class Red(
|
||||
self.remove_permissions_hook(hook)
|
||||
|
||||
await super().remove_cog(cogname, guild=guild, guilds=guilds)
|
||||
self.dispatch("cog_remove", cog)
|
||||
|
||||
cog.requires.reset()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user