Commit 928c4976 authored by endrdragon's avatar endrdragon
Browse files

Merge branch 'master' of https://gitlab.com/lexikiq/semicolon

parents b82206e3 8a441582
......@@ -316,8 +316,12 @@ class Miscellaneous(commands.Cog):
continue
eid = int(match["custom_id"])
emoj = self.bot.get_emoji(eid) or await ctx.guild.fetch_emoji(eid)
if emoj: real_emotes.append(emoj)
guild: discord.Guild = ctx.guild
try:
emoj = self.bot.get_emoji(eid) or await ctx.guild.fetch_emoji(eid)
if emoj: real_emotes.append(emoj)
except discord.NotFound: # raised by fetch_emoji
pass
elif lg == "default":
if txt in POLL_UNICODE_BLACKLIST: continue
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment