![]() |
DiscordCoreAPI
A Discord bot library written in C++, with custom asynchronous coroutines.
|
discord_core_api::select_menu_collector class, passing into its constructor the discord_core_api::input_event_data that resulted from the call to discord_core_api::input_events::respondToInputEventAsync, when the button was created.discord_core_api::select_menu_collector::collectSelectMenuData() function from the instance of the select_menu_collector. note: the arguments for this function are as follows: getSelectMenuDataForAllNew = whether or not it accepts select-menu entries from everyone or just the individual selected with the discord_core_api::targetUser argument. maxWaitTimeInMsNew = the maximum number of milliseconds that the collector will wait for select-menu entries. maxCollectSelectMenuCountNew = the maximum number of select-menu entries that the collector will collect. targetUser = the target user, if discord_core_api::getSelectMenuDataForAllNew is disabled.jsonifier::vector<select_menu_response_data> and deal with the button responses as you see fit! keep in mind that you could set up a voting message by using discord_core_api::getSelectMenuDataForAllNew and having multiple entries allowed.