[3.4] [Events] Rename guild remove listener (#5498) (#5509)

* [Events] on_guild_leave => on_guild_remove

* [Events] on_guild_leave => on_guild_remove
(cherry picked from commit a787033e1d)

Co-authored-by: Just-Jojo <62262765+Just-Jojo@users.noreply.github.com>

Co-authored-by: Just-Jojo <62262765+Just-Jojo@users.noreply.github.com>
This commit is contained in:
Red-GitHubBot
2021-12-31 02:24:06 +01:00
committed by GitHub
parent f500062979
commit 3045989a5f

View File

@@ -396,7 +396,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: