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

For handling user_data input - messages or interactions. More...

#include <InputEvents.hpp>

Static Public Member Functions

static co_routine< void > deleteInputEventResponseAsync (const input_event_data dataPackage, uint32_t timeDelayNew=0)
 Deletes a previously sent "input-event-response". More...
 
static co_routine< input_event_datarespondToInputEventAsync (const respond_to_input_event_data dataPackage)
 Responds to one of a number of types of "input_events". More...
 

Member Function Documentation

◆ deleteInputEventResponseAsync()

co_routine< void > discord_core_api::input_events::deleteInputEventResponseAsync ( const input_event_data  dataPackage,
uint32_t  timeDelayNew = 0 
)
static
Parameters
dataPackagea unique_ptr containing an input_event_data structure.
timeDelayNewan int32_t representing the desired delay until the message is deleted, in milliseconds.
Returns
a co_routine containing void.

Definition at line 113 of file InputEvents.cpp.

Here is the call graph for this function:

◆ respondToInputEventAsync()

co_routine< input_event_data > discord_core_api::input_events::respondToInputEventAsync ( const respond_to_input_event_data  dataPackage)
static
Parameters
dataPackagea respond_to_input_event_data structure.
Returns
an unique_ptr containing an input_event_data structure.

Definition at line 38 of file InputEvents.cpp.


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