We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1267b81 commit 473cb9eCopy full SHA for 473cb9e
bot.py
@@ -911,7 +911,7 @@ async def on_raw_reaction_add(self, payload):
911
912
try:
913
message = await channel.fetch_message(payload.message_id)
914
- except discord.NotFound:
+ except (discord.NotFound, discord.Forbidden):
915
return
916
917
reaction = payload.emoji
core/thread.py
@@ -735,7 +735,7 @@ async def send(
735
else:
736
embed.set_footer(text=self.bot.config["anon_tag"])
737
delete_message = not bool(message.attachments)
738
- if delete_message:
+ if delete_message and isinstance(message.channel, discord.TextChannel):
739
740
await message.delete()
741
except Exception as e:
0 commit comments