Are you an LLM? You can read better optimized documentation at /en/message-templates/types/discord/menu-builder.md for this page in Markdown format
MenuBuilder
Bonus Feature
Selection Menus are only available for servers with bonus!
This data type describes the selection menu builder. Almost all the methods return the same builder, so it is possible to build a method chains like this:
JuniperBot Template
{% do channel
.createEmbed()
.withDescription('Oh, hi!')
.addSelectMenu('STRING', 'selectedSpecies', 'Who are you?', '27a55ca1-c13b-47f5-b8ad-e0da6329a53f')
.addOption('Otter', 'otterOption', ':otter:')
.addOption('Fox', 'foxOption', ':fox_face:')
.withDefaultOption('foxOption')
.endMenu()
.send()
%}
Methods
withMinValues(Amount)
withMaxValues(Amount)
withRequiredRange(Minimum, Maximum)
addOption(Label, Value, Emote, Description)
withDefaultOptions(Options)
withDefaultOption(Option)
withChannelTypes(Types)
withChannelType(Type)
endMenu()
Returns an Embed object related to this menu. Used to continue the method chain for Embed.
Returns: Embed