1

I have done a discord bot and I want to add a custom discord emoji reaction I have this code:

    x = await ctx.send(embed=asdf)
    await x.add_reaction("1️⃣")
    await x.add_reaction("once:EmojiID")

and when i run the code i have this error: discord.ext.commands.errors.CommandInvokeError: Command raised an exception: HTTPException: 400 Bad Request (error code: 10014): Unknown Emoji

Dipo3
  • 33
  • 5
  • Does this answer your question? [Python Bot use custom Emoji](https://stackoverflow.com/questions/51982806/python-bot-use-custom-emoji) – Ceres May 20 '21 at 07:47

1 Answers1

1

Custom emojis can be send like <:name:id>. For example:

await ctx.send("<:emoji_1:123456789123456789>")
await message.add_reaction("<:emoji_1:123456789123456789>")
Ali Hakan Kurt
  • 1,039
  • 5
  • 13