Dispatch a cog unload event [on_cog_remove] (#5570)

Co-authored-by: Flame442 <34169552+Flame442@users.noreply.github.com>
This commit is contained in:
Samuel 2023-04-16 02:26:17 +05:30 committed by GitHub
parent 67f4dd5201
commit c2da29c93e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()