DiscordCoreAPI
A Discord bot library written in C++, with custom asynchronous coroutines.
Loading...
Searching...
No Matches
DiscordCoreAPI::ModalCollector Class Reference

ModalCollector, for collecting modal text input from one or more Users. More...

#include <InteractionEntities.hpp>

Public Member Functions

CoRoutine< ModalResponseDatacollectModalData (int32_t maxWaitTimeInMsNew)
 Used to collect the button inputs from one or more users. More...
 
 ModalCollector (InputEventData &dataPackage)
 Constructor. More...
 

Constructor & Destructor Documentation

◆ ModalCollector()

DiscordCoreAPI::ModalCollector::ModalCollector ( InputEventData dataPackage)

Constructor.

Parameters
dataPackageAn InputEventData structure, from the response that came from the submitted button.

Definition at line 784 of file InteractionEntities.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ collectModalData()

CoRoutine< ModalResponseData > DiscordCoreAPI::ModalCollector::collectModalData ( int32_t  maxWaitTimeInMsNew)

Used to collect the button inputs from one or more users.

Parameters
maxWaitTimeInMsNewThe maximum amount of time to wait for new inputs, in milliseconds.
Returns
A vector of ButtonResponseData.

Definition at line 789 of file InteractionEntities.cpp.


The documentation for this class was generated from the following files: