UNPKG

dressed

Version:

A sleek, serverless-ready Discord bot framework.

32 lines 724 B
const SelectType = { Channel: 8, Mentionable: 7, Role: 6, String: 3, User: 5, }; /** * Creates a select menu component * * Select menu for picking from defined text options, or a user, role, channel, or mentionable */ export function SelectMenu(config) { return { ...config, type: SelectType[config.type], }; } /** * Creates an option to be used in a select menu * * @param label - The user-facing name of the option (max 100 chars) * @param vale - The dev-defined value of the option (max 100 chars) */ export function SelectMenuOption(label, value, config) { return { ...config, label, value, }; } //# sourceMappingURL=select-menu.js.map