1
0
Fork 0
mirror of synced 2024-05-23 22:09:38 +12:00

Ignore errors on error sending message

This commit is contained in:
phxntxm 2017-09-13 03:47:47 -05:00
parent 8a6ec4e681
commit 88b8c04117

View file

@ -107,9 +107,12 @@ class Moderation:
await ctx.message.channel.purge(limit=limit, before=ctx.message)
await ctx.message.delete()
except discord.HTTPException:
await ctx.message.channel.send("Detected messages that are too far "
"back for me to delete; I can only bulk delete messages"
" that are under 14 days old.")
try:
await ctx.message.channel.send("Detected messages that are too far "
"back for me to delete; I can only bulk delete messages"
" that are under 14 days old.")
except:
pass
@commands.command()
@commands.guild_only()