Pre-selection for new Select Menu Types #5735
Unanswered
MaksiRose
asked this question in
API Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Personally, I find that there is something the new selects are lacking. Let me explain.
I have a /server-settings command. There is a select menu with several different kinds of settings you can change. So far, so good.
Now, for one of the settings, the admins are presented a list of all channels, and they can click each to whitelist it for something, or deselect it again to remove it from the whitelist. That whitelist is saved to my database.
The problem is, if an admin runs this command again and navigates to that specific setting, there needs to be a nice way to display which channels are already on the list, and which aren't. The prettiest way to make that happen is to just have those channels that are on the list be shown as selected, aka with a checkmark next to it.
The new Channel Select Menus are perfect for this, however unlike with the old String Select Menus, I can't do something like this.
My suggestion is a new option that let's you submit an array of ID's. Any ID that corresponds to a channel that is in the select menu will be pre-checked.
The way the selects work right now, they are only good for one-time selections, not saved settings. And settings are where selects really come in handy over a slash command implementation.
Beta Was this translation helpful? Give feedback.
All reactions