mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[Core cmds] [p]servers: handle message deletion (#2400)
This commit is contained in:
parent
01ebf2835b
commit
6d22c8faa5
@ -500,7 +500,10 @@ class Core(commands.Cog, CoreLogic):
|
||||
try:
|
||||
await self.bot.wait_for("message", check=pred, timeout=15)
|
||||
except asyncio.TimeoutError:
|
||||
await query.delete()
|
||||
try:
|
||||
await query.delete()
|
||||
except discord.errors.NotFound:
|
||||
pass
|
||||
else:
|
||||
await self.leave_confirmation(guilds[pred.result], ctx)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user