Ignore errors on error sending message
This commit is contained in:
parent
8a6ec4e681
commit
88b8c04117
|
@ -107,9 +107,12 @@ class Moderation:
|
|||
await ctx.message.channel.purge(limit=limit, before=ctx.message)
|
||||
await ctx.message.delete()
|
||||
except discord.HTTPException:
|
||||
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()
|
||||
|
|
Loading…
Reference in a new issue