DiscordCoreAPI
A Discord bot library written in C++, with custom asynchronous coroutines.
|
All of the central class managers are classes that are filled with static methods that are a part of the discord_core_api
namespace, they are as follows:
discord_core_api::application_commands
discord_core_api::auto_moderation_rules
discord_core_api::event_manager
discord_core_api::guild_members
discord_core_api::guild_scheduled_events
discord_core_api::input_events
discord_core_api::interactions
discord_core_api::guilds::getGuildAsync()
is discord_core_api::get_guild_data
. discord_core_api::async
, meaning that they return a value of type discord_core_api::co_routine<discord_core_api::co_routine::return_type>
, which you call discord_core_api::co_routine::get()
on to retrieve the returned value, and to suspend the current thread in the process of waiting for it. alternatively, you have the option of leaving the task's completion up to the background thread that is handling it, by not calling discord_core_api::co_routine::get()
.