aboutsummaryrefslogtreecommitdiff
path: root/src/commands/config/features.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-11-15 15:48:50 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-11-15 15:48:50 -0500
commite5f90ecfa84b2d102c0774b0c50a31d58025555b (patch)
treef3fa3da369089183537eae5da82fb9f2d4e19faf /src/commands/config/features.ts
parent6fd7f7064782fddc20e65b5f1b1ba987c3a868a4 (diff)
downloadtanzanite-e5f90ecfa84b2d102c0774b0c50a31d58025555b.tar.gz
tanzanite-e5f90ecfa84b2d102c0774b0c50a31d58025555b.tar.bz2
tanzanite-e5f90ecfa84b2d102c0774b0c50a31d58025555b.zip
idk
Diffstat (limited to 'src/commands/config/features.ts')
-rw-r--r--src/commands/config/features.ts27
1 files changed, 13 insertions, 14 deletions
diff --git a/src/commands/config/features.ts b/src/commands/config/features.ts
index 7f9ffc9..8c9351d 100644
--- a/src/commands/config/features.ts
+++ b/src/commands/config/features.ts
@@ -74,21 +74,20 @@ export default class FeaturesCommand extends BushCommand {
);
}
- public generateComponents(guildFeatures: GuildFeatures[], disable: boolean): MessageActionRow {
+ public generateComponents(guildFeatures: GuildFeatures[], disable: boolean) {
return new MessageActionRow().addComponents(
- new MessageSelectMenu()
- .addOptions(
- ...guildFeatures.map((f) => ({
- label: guildFeaturesObj[f].name,
- value: f,
- description: guildFeaturesObj[f].description
- }))
- )
- .setPlaceholder('Select A Feature to Toggle')
- .setMaxValues(1)
- .setMinValues(1)
- .setCustomId('command_selectFeature')
- .setDisabled(disable)
+ new MessageSelectMenu({
+ customId: 'command_selectFeature',
+ disabled: disable,
+ maxValues: 1,
+ minValues: 2,
+ options: guildFeatures.map((f) => ({
+ label: guildFeaturesObj[f].name,
+ value: f,
+ description: guildFeaturesObj[f].description
+ })),
+ placeholder: 'Select A Feature to Toggle'
+ })
);
}
}