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

Did you find this page helpful?