SelectMenuCollector, for collecting select-menu input from one or more Users.
More...
#include <InteractionEntities.hpp>
◆ SelectMenuCollector()
DiscordCoreAPI::SelectMenuCollector::SelectMenuCollector |
( |
InputEventData & |
dataPackage | ) |
|
◆ collectSelectMenuData() [1/2]
CoRoutine< std::vector< SelectMenuResponseData > > DiscordCoreAPI::SelectMenuCollector::collectSelectMenuData |
( |
bool |
getSelectMenuDataForAllNew, |
|
|
int32_t |
maxWaitTimeInMsNew, |
|
|
int32_t |
maxCollectedSelectMenuCountNew, |
|
|
CreateInteractionResponseData |
errorMessageDataNew, |
|
|
Snowflake |
targetUserId = Snowflake{} |
|
) |
| |
- Parameters
-
getSelectMenuDataForAllNew | Whether or not to collect select-menu input from a single target User or all potential users. |
maxWaitTimeInMsNew | The maximum amount of time to wait for new inputs, in milliseconds. |
maxCollectedSelectMenuCountNew | The maximum number of inputs to collect before stopping. |
errorMessageDataNew | The message-data for when an individual other than the selected individual attemps to use this interaction. |
targetUserId | The id of the single User to collect inputs from, if getSelectMenuDataForAllNew is set to false. |
- Returns
- A vector of SelectMenuResponseData.
Definition at line 462 of file InteractionEntities.cpp.
◆ collectSelectMenuData() [2/2]
- Parameters
-
triggerFunctionNew | A std::function<bool(InteractionData)> to decide whether or not to trigger the event's main function. |
functionNew | Takes a DiscordCoreInternal::TriggerEventDelegate<void, InteractionData> as a function to be executed upon returning true from the "trigger-function". |
Definition at line 483 of file InteractionEntities.cpp.
The documentation for this class was generated from the following files: