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

SelectMenuCollector, for collecting select-menu input from one or more Users. More...

#include <InteractionEntities.hpp>

Public Member Functions

CoRoutine< std::vector< SelectMenuResponseData > > collectSelectMenuData (bool getSelectMenuDataForAllNew, int32_t maxWaitTimeInMsNew, int32_t maxCollectedSelectMenuCountNew, Snowflake targetUserId=Snowflake{ 0 })
 Used to collect the select-menu inputs from one or more users. More...
 
 SelectMenuCollector (InputEventData &dataPackage)
 Constructor. More...
 

Constructor & Destructor Documentation

◆ SelectMenuCollector()

DiscordCoreAPI::SelectMenuCollector::SelectMenuCollector ( InputEventData dataPackage)

Constructor.

Parameters
dataPackageAn InputEventData structure, from the response that came from the submitted select-menu.

Definition at line 533 of file InteractionEntities.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ collectSelectMenuData()

CoRoutine< std::vector< SelectMenuResponseData > > DiscordCoreAPI::SelectMenuCollector::collectSelectMenuData ( bool  getSelectMenuDataForAllNew,
int32_t  maxWaitTimeInMsNew,
int32_t  maxCollectedSelectMenuCountNew,
Snowflake  targetUserId = Snowflake{ 0 } 
)

Used to collect the select-menu inputs from one or more users.

Parameters
getSelectMenuDataForAllNewWhether or not to collect select-menu input from a single target User or all potential users.
maxWaitTimeInMsNewThe maximum amount of time to wait for new inputs, in milliseconds.
maxCollectedSelectMenuCountNewThe maximum number of inputs to collect before stopping.
targetUserIdThe id of the single User to collect inputs from, if getSelectMenuDataForAllNew is set to false.
Returns
A vector of SelectMenuResponseData.

Definition at line 541 of file InteractionEntities.cpp.


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