From a93cd158fa73767f15a45f0c4bb4ce51b46cb578 Mon Sep 17 00:00:00 2001 From: Dylan Dizon Date: Tue, 6 Nov 2018 15:21:31 -0500 Subject: [PATCH] Add suppressing of permissions exception for cmd_completion reactions --- src/run.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/run.py b/src/run.py index af9d20c..27bc182 100644 --- a/src/run.py +++ b/src/run.py @@ -195,7 +195,8 @@ async def on_command_completion(ctx): if ctx.guild.id in u.settings['del_ctx'] and ctx.me.permissions_in(ctx.channel).manage_messages and isinstance(ctx.message.channel, d.TextChannel): await ctx.message.delete() - await ctx.message.add_reaction('\N{WHITE HEAVY CHECK MARK}') + with suppress(err.Forbidden): + await ctx.message.add_reaction('\N{WHITE HEAVY CHECK MARK}') for command in ('lastcommand', ',restart', ',die'): if ctx.command.name == command: