Fixing the interpolation of the emoji on upload

This commit is contained in:
Luke Robles 2017-12-17 10:42:04 -08:00
parent d7995ebae6
commit c80dea32ea

View File

@ -137,14 +137,15 @@ async def on_message(message):
f.write(requests.get(url).content)
# Attempt to upload the emoji
await client.create_custom_emoji(
server=client.get_server('152921472304676865'),
name=emoji_name,
image=open(emoji_staging, "rb").read()
)
await client.send_message(
message.channel,
"emoji successfully uploaded!"
"emoji successfully uploaded! Heres how it looks in a sentence {}".format(
await client.create_custom_emoji(
server=message.server,
name=emoji_name,
image=open(emoji_staging, "rb").read()
)
)
)
except Exception: