mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[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:
parent
8cc004f70f
commit
a787033e1d
@ -380,7 +380,7 @@ def init_events(bot, cli_flags):
|
|||||||
await _guild_added(guild)
|
await _guild_added(guild)
|
||||||
|
|
||||||
@bot.event
|
@bot.event
|
||||||
async def on_guild_leave(guild: discord.Guild):
|
async def on_guild_remove(guild: discord.Guild):
|
||||||
# Clean up any unneeded checks
|
# Clean up any unneeded checks
|
||||||
disabled_commands = await bot._config.guild(guild).disabled_commands()
|
disabled_commands = await bot._config.guild(guild).disabled_commands()
|
||||||
for command_name in disabled_commands:
|
for command_name in disabled_commands:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user