Fixed broken check & query

This commit is contained in:
Visual 2020-03-30 17:16:43 +00:00
parent 0eccf15750
commit fdb2afcd36
1 changed files with 3 additions and 2 deletions

View File

@ -105,7 +105,7 @@ async def _put_emoji(guild_id):
size=(128, 128),
)
if not icon:
if icon is None:
return "", 400
# TODO: better way to detect animated emoji rather than just gifs,
@ -172,10 +172,11 @@ async def _del_emoji(guild_id, emoji_id):
await app.db.execute(
"""
DELETE FROM guild_emoji
WHERE id = $2
WHERE id = $1
""",
emoji_id,
)
await _dispatch_emojis(guild_id)
return "", 204