A new Checkbox component #3808
Replies: 7 comments 4 replies
-
I think this could be a possibility in the upcoming forms component. |
Beta Was this translation helpful? Give feedback.
-
Checkboxes would be really nice! I had thought about suggesting this a few times but never did so for a few reasons. Here are a couple of considerations to have though.
Anyways, I love the idea and it could pose a nice slim UI in comparison to buttons. |
Beta Was this translation helpful? Give feedback.
-
With this, I feel like radio buttons/toggles should be heavily considered alongside the possibility of adding a checkbox component. Checkbox components sound like they could work similarly in mind with how select menus currently perform. Maybe this should be added like a JSON field |
Beta Was this translation helpful? Give feedback.
-
Just wanting to bump this, as I have recently ran into a modal im building which I feel needs a checkbox. A modal im building which is for a moderation action for staff to fill in, and i wanted a checkbox to ban the user
|
Beta Was this translation helpful? Give feedback.
-
I don't support this feature anymore, selects can be used. |
Beta Was this translation helpful? Give feedback.
-
How does discord expect us to create a boolean input? Current OptionsSelectThey take a complete action row, which is too much for a simple toggle. ButtonIf so, what colors should I use for on and off? It can be really confusing and I can't find any combination that'll stand out - in my embed, this toggle is the most important button.
Modal with SelectIt may solve the select's length issue, but it'll keep all of the other issues, and the coloring issue of the button opening the modal (as you don't want opening the modal to be mandatory in order to view the current state), and will make the process longer and tedious. Ephemeral with SelectThis method will keep all of the modal's negatives, and isn't deletable after being used. Ephemerals shouldn't be used as modals. ReactionsThey have multiple issues:
ConclusionSeeing all above options are invalid, I suggest to add the SwitchWith a loading animation as shown below, to resemble the bot is thinking. |
Beta Was this translation helpful? Give feedback.
-
Now I honestly don't have any other solution than using a |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How does it benefit bots?
Certain bots require certain settings to be configured. Some bots allow the user to change/toggle these settings by commands but adding a checkbox component will make it easier for the user to toggle these settings.
Other than the use for toggling settings it can be used for many functionality in bots i.e. polls/votes, lists, etc... there are several use cases for a checkbox component.
Beta Was this translation helpful? Give feedback.
All reactions