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

Message collector, for collecting Messages from a Channel. More...

#include <MessageEntities.hpp>

Public Member Functions

CoRoutine< MessageCollectorReturnDatacollectMessages (int32_t quantityToCollect, int32_t msToCollectForNew, ObjectFilter< MessageData > filteringFunctionNew)
 Begin waiting for Messages.
 

Member Function Documentation

◆ collectMessages()

CoRoutine< MessageCollectorReturnData > DiscordCoreAPI::MessageCollector::collectMessages ( int32_t  quantityToCollect,
int32_t  msToCollectForNew,
ObjectFilter< MessageData filteringFunctionNew 
)
Parameters
quantityToCollectMaximum quantity of Messages to collect before returning the results.
msToCollectForNewMaximum number of Milliseconds to wait for Messages before returning the results.
filteringFunctionNewA filter function to apply to new Messages, where returning "true" from the function results in a Message being stored.
Returns
A ObjectCollectorReturnData structure.

Definition at line 33 of file MessageEntities.cpp.


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