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

Definition at line 33 of file MessageEntities.cpp.

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