스킵 구현

This commit is contained in:
2023-12-20 19:45:25 +09:00
parent 6503fd167b
commit 8a987320e0
775 changed files with 162601 additions and 135 deletions

View File

@@ -0,0 +1,9 @@
\page components Using Button Components
Discord's newest features support sending buttons alongside messages, which when clicked by the user trigger an interaction which is routed by D++ as an `on_button_click` event. To make use of this, use this code as in this example.
\include{cpp} components.cpp
When the feature is functioning, the code below will produce buttons on the reply message like in the image below:
\image html button.png

View File

@@ -0,0 +1,9 @@
\page components2 Advanced Button Components
This example demonstrates adding multiple buttons, receiving button clicks, and sending response messages.
\include{cpp} components2.cpp
This code will send a different message for correct and incorrect answers.
\image html button_2.png

View File

@@ -0,0 +1,17 @@
\page components3 Using Select Menu Components
This tutorial will cover creating two types of select menus:
- A generic select menu with just text
- An auto-populated role select menu.
This first example demonstrates creating a select menu, receiving select menu clicks, and sending a response message.
\include{cpp} components3.cpp
This second example demonstrates:
- Creating a role select menu that is auto-populated by Discord
- Allowing users to select two options!
\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.
\include{cpp} components3_rolemenu.cpp

View File

@@ -0,0 +1,13 @@
\page default_select_value Setting Default Values on Select Menus.
This tutorial will cover how to set the default value for a select menu (that isn't a text select menu)!
\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".
\include{cpp} default_select_value.cpp
If all went well, you should have something like this!
\image html default_select_value.png
\image html default_select_value_2.png