Fixing the interpolation of the emoji on upload
This commit is contained in:
parent
d7995ebae6
commit
c80dea32ea
@ -137,14 +137,15 @@ async def on_message(message):
|
|||||||
f.write(requests.get(url).content)
|
f.write(requests.get(url).content)
|
||||||
|
|
||||||
# Attempt to upload the emoji
|
# 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(
|
await client.send_message(
|
||||||
message.channel,
|
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:
|
except Exception:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user