Jefferado
Jefferado
DIAdiscord.js - Imagine an app
Created by Jefferado on 10/21/2023 in #djs-questions
Unable to use :person_shrugging: emoji in button?
Anyone know how I can use 🤷 emoji in a button? When I do \:person_shrugging: and copy/paste it into the name field I get � and an error. Here is the code for the button:
new ButtonBuilder()
.setCustomId('button')
.setEmoji({ name: ':person_shrugging:'})
.setStyle(ButtonStyle.Secondary)
new ButtonBuilder()
.setCustomId('button')
.setEmoji({ name: ':person_shrugging:'})
.setStyle(ButtonStyle.Secondary)
The error I get is
DiscordAPIError[50035]: Invalid Form Body
data.components[0].components[1].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji
DiscordAPIError[50035]: Invalid Form Body
data.components[0].components[1].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji
11 replies