| 1 |
\page default_select_value Setting Default Values on Select Menus. |
| 2 |
|
| 3 |
This tutorial will cover how to set the default value for a select menu (that isn't a text select menu)! |
| 4 |
|
| 5 |
\note **This only works for the following types of select menus: user, role, mentionable, and channel.** The default type of a select menu (as shown in \ref components3 "this page") does not work for this, as that supports a "placeholder". |
| 6 |
|
| 7 |
\include{cpp} default_select_value.cpp |
| 8 |
|
| 9 |
If all went well, you should have something like this! |
| 10 |
|
| 11 |
\image html default_select_value.png |
| 12 |
|
| 13 |
\image html default_select_value_2.png |