From 3045989a5fde3b16eedfa7e93e66e0d3f8cacbd4 Mon Sep 17 00:00:00 2001 From: Red-GitHubBot <88117545+Red-GitHubBot@users.noreply.github.com> Date: Fri, 31 Dec 2021 02:24:06 +0100 Subject: [PATCH] [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 a787033e1d39be528db45ac0188cc92b7ed0a111) Co-authored-by: Just-Jojo <62262765+Just-Jojo@users.noreply.github.com> Co-authored-by: Just-Jojo <62262765+Just-Jojo@users.noreply.github.com> --- redbot/core/events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redbot/core/events.py b/redbot/core/events.py index db7f3606f..700e9f0c1 100644 --- a/redbot/core/events.py +++ b/redbot/core/events.py @@ -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: