Select menu emojis
https://media.discordapp.net/attachments/1094668346189951020/1094694931911692369/image.png
How can I make emojis for select menus like that?
43 Replies
• 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.StringSelectMenuBuilder#addOptions method using
emoji
propertydoes .setEmoji for menu selecter work? O.o
No, you need to the the
emoji
property of StringSelectMenuBuilder#addOptions()
as I mentioned
addOptions
takes an REST object like
I don't understand.
Im sorry.
What don't you understand?
How are you adding option to your select menu currently? Show code
I think I got it.
Can you try check my other question? https://discord.com/channels/222078108977594368/1094396589184913418
😄
It's already been answered, use the
messageCreate
event instead of the deprecated message
eventAlright
Can I use custom server emotes in the emote thing
like example
<diamondemote:1285883286883286>
Am I able to do something like that
Only the emoji ID is needed for the
emoji
valueThx bro ❤️
<diamondemote:1285883286883286> that part
np
I have no clue how to fix the message thing
The event?
ye..
and then it should work?
Yes
This is alright?
Looks good
It didn't send the message to the channel.. :/
What intents are you using? You need the
Guilds
and GuildMessages
intentsAlright, I only had the Guilds
Good?
You only needs
Guilds
not Guild
, and you should be using the GatewayIntentBits
enum instead of a stringIt didn't send it
This is my full index file
Try doing some simple logging in the
messageCreate
eventWhere do you want me to do that?
I see
It doesn't even run it
I tried console.log at the top of the client.on
So you get no output at all?
Yeah
Make sure your events are being loaded correctly
Uhmm
It seems to work
although there is going 3 - 5 minutes before it is sending from I start the bot
How can I fix the delay?
Well the event will only fire when a message is created in the server. If you want it to happen when the bot starts, use the
ready
event insteadOHHH
I just found out
haha
omg
what do I have to type in?
just replace messageCreate => ready
Yep
can I make the bot send the message only once?
The ready event should only be emitted once, when the bot state is ready
Or use
client.once
that the emoji
I have tried both without the name just with the code
name
should be id
and the value should be the ID of the emoji, not the full identifier
Also pretty sure you can just do emoji: '1234567890'