| 1 |
\page components3 Using Select Menu Components |
| 2 |
|
| 3 |
This tutorial will cover creating two types of select menus: |
| 4 |
- A generic select menu with just text |
| 5 |
- An auto-populated role select menu. |
| 6 |
|
| 7 |
This first example demonstrates creating a select menu, receiving select menu clicks, and sending a response message. |
| 8 |
|
| 9 |
\include{cpp} components3.cpp |
| 10 |
|
| 11 |
This second example demonstrates: |
| 12 |
- Creating a role select menu that is auto-populated by Discord |
| 13 |
- Allowing users to select two options! |
| 14 |
|
| 15 |
\note This type of select menu, along with other types (these types being: user, role, mentionable, and channel), always auto-fill. You never need to define the data in these types of select menus. All select menu types allow you to select multiple options. |
| 16 |
|
| 17 |
\include{cpp} components3_rolemenu.cpp |