mirror of
https://github.com/uhIgnacio/EmoteManager.git
synced 2024-08-15 02:23:13 +00:00
cogs/emote: remove one print, add another
This commit is contained in:
parent
7b843d0bd9
commit
3550d5c502
1 changed files with 1 additions and 1 deletions
|
@ -52,6 +52,7 @@ class Emotes:
|
||||||
not context.author.guild_permissions.manage_emojis
|
not context.author.guild_permissions.manage_emojis
|
||||||
or not context.guild.me.guild_permissions.manage_emojis
|
or not context.guild.me.guild_permissions.manage_emojis
|
||||||
):
|
):
|
||||||
|
logger.error('emote: check failed')
|
||||||
raise errors.MissingManageEmojisPermission
|
raise errors.MissingManageEmojisPermission
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
@ -139,7 +140,6 @@ class Emotes:
|
||||||
async with self.http.get(
|
async with self.http.get(
|
||||||
self.bot.config['ec_api_url'] + '/emote/' + urllib.parse.quote(name, safe='')
|
self.bot.config['ec_api_url'] + '/emote/' + urllib.parse.quote(name, safe='')
|
||||||
) as resp:
|
) as resp:
|
||||||
print(resp.url)
|
|
||||||
if resp.status == 404:
|
if resp.status == 404:
|
||||||
return await context.send("Emote not found in Emoji Connoisseur's database.")
|
return await context.send("Emote not found in Emoji Connoisseur's database.")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue