A Discord bot library written in C++, with custom asynchronous coroutines.
No Matches
DiscordCoreAPI::ObjectCollector< Message > Class Reference

Object collector, for collecting Objects from a Channel. More...

Public Member Functions

CoRoutine< ObjectCollectorReturnData< Message > > collectObjects (int32_t quantityToCollect, int32_t msToCollectForNew, ObjectFilter< Message > filteringFunctionNew)
 Begin waiting for Objects.

Member Function Documentation

◆ collectObjects()

CoRoutine< ObjectCollectorReturnData< Message > > DiscordCoreAPI::ObjectCollector< Message >::collectObjects ( int32_t  quantityToCollect,
int32_t  msToCollectForNew,
ObjectFilter< Message filteringFunctionNew 
quantityToCollectMaximum quantity of Objects to collect before returning the results.
msToCollectForNewMaximum number of Milliseconds to wait for Objects before returning the results.
filteringFunctionNewA filter function to apply to new Objects, where returning "true" from the function results in a Object being stored.
A ObjectCollectorReturnData structure.

Definition at line 50 of file MessageEntities.cpp.

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