Remove Label Not Working

Error
emojiBtn.setEmoji(emoji).setStyle(ButtonStyle.process).removeLabel();
emojiBtn.setEmoji(emoji).setStyle(ButtonStyle.process).removeLabel();
19 Replies
d.js toolkit
d.js toolkit2y ago
• 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.
Ashish
Ashish2y ago
What's the error Also idt ButtonStyle.Process is a thing
Professor
ProfessorOP2y ago
TypeError: emojiBtn.setEmoji(...).setStyle(...).removeLabel is not a function
Ashish
Ashish2y ago
What's emojiBtn
Professor
ProfessorOP2y ago
Its A Node Module
Ashish
Ashish2y ago
Also .removeLabel() is not a thing
Professor
ProfessorOP2y ago
It Has Many Connections
Ashish
Ashish2y ago
What It has to be a ButtonBuilder
Professor
ProfessorOP2y ago
Yup it is a buttonbuilder
Ashish
Ashish2y ago
Yea I don't think .removeLabel() is a thing Just remove that and see what happens
Professor
ProfessorOP2y ago
Kk one min Working TYSM Another Error
TypeError: emojiBtn.removeEmoji is not a function
TypeError: emojiBtn.removeEmoji is not a function
How To Remove Emoji From Button
Ashish
Ashish2y ago
Just do .setEmoji() instead of removeEmoji()
Professor
ProfessorOP2y ago
Kk @3061lrtagspkjmormrt Expected the value to be an object, but received undefined instead
Ashish
Ashish2y ago
Hold on
Professor
ProfessorOP2y ago
hi
Ashish
Ashish2y ago
Okay remove the setEmoji() And replace it with .toJSON() then below that line, try doing emojiBtn.emoji = {}
Professor
ProfessorOP2y ago
why
Ashish
Ashish2y ago
... Because I don't think you remove emojis using methods
jay
jay2y ago
why are you making up non existent methods
Want results from more Discord servers?
Add your server