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 toolkit13mo 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
Ashish13mo ago
What's the error Also idt ButtonStyle.Process is a thing
Professor
Professor13mo ago
TypeError: emojiBtn.setEmoji(...).setStyle(...).removeLabel is not a function
Ashish
Ashish13mo ago
What's emojiBtn
Professor
Professor13mo ago
Its A Node Module
Ashish
Ashish13mo ago
Also .removeLabel() is not a thing
Professor
Professor13mo ago
It Has Many Connections
Ashish
Ashish13mo ago
What It has to be a ButtonBuilder
Professor
Professor13mo ago
Yup it is a buttonbuilder
Ashish
Ashish13mo ago
Yea I don't think .removeLabel() is a thing Just remove that and see what happens
Professor
Professor13mo 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
Ashish13mo ago
Just do .setEmoji() instead of removeEmoji()
Professor
Professor13mo ago
Kk @3061lrtagspkjmormrt Expected the value to be an object, but received undefined instead
Ashish
Ashish13mo ago
Hold on
Professor
Professor13mo ago
hi
Ashish
Ashish13mo ago
Okay remove the setEmoji() And replace it with .toJSON() then below that line, try doing emojiBtn.emoji = {}
Professor
Professor13mo ago
why
Ashish
Ashish13mo ago
... Because I don't think you remove emojis using methods
j
j13mo ago
why are you making up non existent methods