A Discord bot library written in C++, with custom asynchronous coroutines.
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 maxWaitTimeInMsNew, Int32 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)


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  maxWaitTimeInMsNew,
Int32  maxCollectedSelectMenuCountNew,
Snowflake  targetUserId = Snowflake{ 0 } 

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

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.
A vector of SelectMenuResponseData.

Definition at line 541 of file InteractionEntities.cpp.

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