#server emojis not working on embed discordjs

16 messages · Page 1 of 1 (latest)

heady tusk
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

sweet wraith
#

to use server emojis like that you have to use the correct format

#

<a:name:id>

#

where a if animated

latent carbon
#

@sweet wraith how can I get the id, lets say the user just inputs :custom_emoji:?

sweet wraith
#

your bot receives the emoji formatted like <:name:id>

#

in the content

latent carbon
#

I don't understand

#
const embed = new EmbedBuilder()
    .setTitle(title)
#

When on the title I put :firecape: a custom emoji, it just appears like that on the title

sweet wraith
#

you did not understand what i just told you, if you want to use custom emojis, the emoji has to be written as <a:name:id> in the embed

#

your title has to be .setTitle('<emojiname:123456789992392>')

latent carbon
#

I understand

#

How can I get the emoji ID?

sweet wraith
#

put a backslash before the custom emoji and then send it