MCPcopy Index your code
hub / github.com/codebymitch/TitanBot / createSelectMenu

Function createSelectMenu

src/utils/components.js:51–60  ·  view source on GitHub ↗
(customId, placeholder, options = [], min = 1, max = 1)

Source from the content-addressed store, hash-verified

49}
50
51export function createSelectMenu(customId, placeholder, options = [], min = 1, max = 1) {
52 return new ActionRowBuilder().addComponents(
53 new StringSelectMenuBuilder()
54 .setCustomId(customId)
55 .setPlaceholder(placeholder)
56 .setMinValues(min)
57 .setMaxValues(max)
58 .addOptions(options)
59 );
60}
61
62export function createButton(customId, label, style = 'primary', emoji = null, disabled = false) {
63

Callers 1

createInitialHelpMenuFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected