[Events] Rename guild remove listener (#5498)

* [Events] on_guild_leave => on_guild_remove

* [Events] on_guild_leave => on_guild_remove
This commit is contained in:
Just-Jojo 2021-12-30 20:22:29 -05:00 committed by GitHub
parent 8cc004f70f
commit a787033e1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -380,7 +380,7 @@ def init_events(bot, cli_flags):
await _guild_added(guild)
@bot.event
async def on_guild_leave(guild: discord.Guild):
async def on_guild_remove(guild: discord.Guild):
# Clean up any unneeded checks
disabled_commands = await bot._config.guild(guild).disabled_commands()
for command_name in disabled_commands: