mirror of
https://github.com/JimenezJC/discord-7tv-emoji-app.git
synced 2025-12-05 23:39:55 -05:00
Naming emotes appropriately
This commit is contained in:
parent
9aaf8d7a58
commit
a2b4e5127d
4 changed files with 16 additions and 25 deletions
3
bot.py
3
bot.py
|
|
@ -17,8 +17,9 @@ async def send_message(message, user_message, is_private):
|
|||
await message.channel.send("You do not have permission to manage emojis.")
|
||||
return
|
||||
|
||||
gif_data, gif_name = response
|
||||
try:
|
||||
await message.guild.create_custom_emoji(name="gif", image=response)
|
||||
await message.guild.create_custom_emoji(name=gif_name, image=gif_data)
|
||||
await message.channel.send("Emote Added")
|
||||
except discord.HTTPException as e:
|
||||
await message.channel.send(f"An error occurred: {e}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue