DiscordCoreAPI
A Discord bot library written in C++, with custom asynchronous coroutines.
|
discord_core_api::input_events::respondToInputEventAsync()
function, while passing in a data structure of type discord_core_api::respond_to_input_event_data
with a type set to either discord_core_api::input_event_response_type::Deferred_Response
, discord_core_api::input_event_response_type::Interaction_Response
, or discord_core_api::input_event_response_type::Ephemeral_Interaction_Response
, with a return value of type auto
or discord_core_api::unique_ptr<input_event_data>
.