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

For handling User input - Messages or Interactions. More...

#include <InputEvents.hpp>

Static Public Member Functions

static CoRoutine< void > deleteInputEventResponseAsync (InputEventData &dataPackage, int32_t timeDelayNew=0)
 Deletes a previously sent "input-event-response".
 
static CoRoutine< InputEventDatarespondToInputEventAsync (RespondToInputEventData dataPackage)
 Responds to one of a number of types of "InputEvents".
 

Member Function Documentation

◆ deleteInputEventResponseAsync()

CoRoutine< void > DiscordCoreAPI::InputEvents::deleteInputEventResponseAsync ( InputEventData dataPackage,
int32_t  timeDelayNew = 0 
)
static
Parameters
dataPackageA std::unique_ptr containing an InputEventData structure.
timeDelayNewAn int32_t representing the desired delay until the message is deleted, in Milliseconds.
Returns
A CoRoutine containing void.

Definition at line 106 of file InputEvents.cpp.

Here is the call graph for this function:

◆ respondToInputEventAsync()

CoRoutine< InputEventData > DiscordCoreAPI::InputEvents::respondToInputEventAsync ( RespondToInputEventData  dataPackage)
static
Parameters
dataPackageA RespondToInputEventData structure.
Returns
An std::unique_ptr containing an InputEventData structure.

Definition at line 32 of file InputEvents.cpp.


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