Setting emojis in a select menu

select.addOptions(
            new StringSelectMenuOptionBuilder()
                .setLabel(`${result.label}`)
                .setDescription('test')
                .setEmoji(/* What do I put here? */)
                .setDescription('x')
                .setValue(result.label)
            );


What exactly do I put in setEmoji? Every time I try and run the bot, it crashes with
{
  code: "BUTTON_COMPONENT_INVALID_EMOJI",
  message: "Invalid emoji",
}


Using šŸ‘ as the example I've tried (and can't remember the rest):
  • "thumbups"
  • { name: "thumbups"}
  • "<:thumbups:>"
  • interaction.client.emojis.cache.get("thumbsup")
Was this page helpful?