[General, Owner] Properly catch perm exceptions for embeds

This commit is contained in:
Twentysix
2016-11-18 01:57:29 +01:00
parent b740bcae2e
commit 49567bc1a3
2 changed files with 8 additions and 4 deletions

View File

@@ -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")