Nifty
Nifty
DIAdiscord.js - Imagine an app
Created by Nifty on 3/1/2024 in #djs-questions
adding an Emoji to a button getting "invalid emjoi"
this works 🙂
const two = new ButtonBuilder()
.setCustomId('two')
.setLabel('2')
.setEmoji({name: '🐚'})
.setStyle(ButtonStyle.Success);
const two = new ButtonBuilder()
.setCustomId('two')
.setLabel('2')
.setEmoji({name: '🐚'})
.setStyle(ButtonStyle.Success);
10 replies
DIAdiscord.js - Imagine an app
Created by Nifty on 3/1/2024 in #djs-questions
adding an Emoji to a button getting "invalid emjoi"
thankyou! dont know why I couldn't find that anywhere. every example i found in the docs just has an id number in a string which does not work.
10 replies
DIAdiscord.js - Imagine an app
Created by Nifty on 3/1/2024 in #djs-questions
adding an Emoji to a button getting "invalid emjoi"
placing that in the code
const three = new ButtonBuilder()
.setCustomId('three')
.setLabel('3')
.setEmoji({name: "\:shell:"})
.setStyle(ButtonStyle.Danger);
const three = new ButtonBuilder()
.setCustomId('three')
.setLabel('3')
.setEmoji({name: "\:shell:"})
.setStyle(ButtonStyle.Danger);
i still get the error data.components[0].components[0].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji
10 replies