Adding emotes to a select menu not working
Hello!
I've got a weird issue where I get a
DiscordAPIError[50035] - DiscordAPIError[50035]: Invalid Form Body
when I try to add emotes to a select menu.
Here's the relevant code that doesn't work:
and it's console output:
15 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!References
Enum file (this is a ts file that has been compiled)
And a link to the relevant conversation in #djs-help-v14 - https://discord.com/channels/222078108977594368/824411059443204127/1151280976438239292
Doing it manually by hardcoding...
When the emoji string is hardcoded (using the first value copy-pasted from the console output), it works
Things I've tried
- Using the emojis in the escaped format:
- Adding the < & > characters:
- Explicit & implicit type casting
& probably various other things
@GodderE2D had the following thoughts but those didn't help either... :(
- Type casting & just using the Id https://discord.com/channels/222078108977594368/824411059443204127/1151280976438239292
- Invisible characters https://discord.com/channels/222078108977594368/824411059443204127/1151283649392680981
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
Yep- all those are in the server
on a quick aside: how did you get that emote, you're not in the server
if you're wanting to see this in person i'd be happy to hop in a VC and show my screen- this is baffling to me as well lol
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
Here you can see the emotes being used and the bot in the same server ( I don't have nitro )
Yep, one sec
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
When using this value I get the following error
and the code:
let me try somethibng
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
Yeah see above
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View