mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-05 17:02:32 -05:00
* [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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user