Embed not sending- option value
Hello! My problem is, that the message is not gettin send into the Channel. I tried to get the option value:
const optionEmbed = interaction.options.get('embed').value;
and use it to let the code know, which embed it should send.
But when i choose the welcomeEmbed its not working.
2 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.i got the choises
.addChoices(
{ name: 'Welcome Embed', value: 'welcomeEmbed' },
{ name: 'Second one', value: 'secondEmbed' }
)
the
const optionEmbed = interaction.options.get('embed').value;
and i use it here:
channelForWelcomeEmbed.send({ embeds: [{optionEmbed}] })
so what do i have to do now
to make it work?
thanks