ButtonCollector, for collecting button input from one or more Users.
More...
#include <InteractionEntities.hpp>
◆ ButtonCollector()
DiscordCoreAPI::ButtonCollector::ButtonCollector |
( |
InputEventData & |
dataPackage | ) |
|
◆ collectButtonData() [1/2]
- Parameters
-
getButtonDataForAllNew | Whether or not to collect input from a single target User or all potential users. |
maxWaitTimeInMsNew | The maximum amount of time to wait for new inputs, in milliseconds. |
maxNumberOfPressesNew | 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 getButtonDataForAllNew is set to false. |
- Returns
- A vector of ButtonResponseData.
Definition at line 597 of file InteractionEntities.cpp.
◆ collectButtonData() [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 615 of file InteractionEntities.cpp.
The documentation for this class was generated from the following files: