mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-08 10:22:31 -05:00
[General, Owner] Properly catch perm exceptions for embeds
This commit is contained in:
@@ -207,7 +207,7 @@ class General:
|
||||
|
||||
try:
|
||||
await self.bot.say(embed=data)
|
||||
except:
|
||||
except discord.HTTPException:
|
||||
await self.bot.say("I need the `Embed links` permission "
|
||||
"to send this")
|
||||
|
||||
@@ -249,7 +249,7 @@ class General:
|
||||
|
||||
try:
|
||||
await self.bot.say(embed=data)
|
||||
except:
|
||||
except discord.HTTPException:
|
||||
await self.bot.say("I need the `Embed links` permission "
|
||||
"to send this")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user