38 guild_data toEntity(snowflake
id) {
39 if (guilds::doWeCacheGuilds()) {
49 if (guilds::doWeCacheGuilds()) {
58 channel_data toEntity(snowflake
id) {
59 if (guilds::doWeCacheGuilds()) {
69 if (guilds::doWeCacheGuilds()) {
78 guild_member_data toEntity(snowflake
id, snowflake idTwo) {
79 if (guilds::doWeCacheGuilds()) {
88 message_data toEntity(snowflake idNew, snowflake channelIdNew) {
94 stage_instance_data toEntity(snowflake idNew) {
static channel_cache_data getCachedChannel(get_channel_data dataPackage)
Collects a channel from the library's cache.
static co_routine< channel_data > getChannelAsync(get_channel_data dataPackage)
Collects a channel from the discord servers.
A discord guild. used to connect to/disconnect from voice.
Data structure representing a single guild_member_data.
static co_routine< guild_member_data > getGuildMemberAsync(get_guild_member_data dataPackage)
Collects a guild_member from the discord servers.
static guild_member_cache_data getCachedGuildMember(get_guild_member_data dataPackage)
Collects a guild_member from the library's cache.
static co_routine< guild_data > getGuildAsync(get_guild_data dataPackage)
Collects a guild from the discord servers.
static guild_cache_data getCachedGuild(get_guild_data dataPackage)
Collects a guild from the library's cache.
The core of a message's data structure.
static co_routine< message_data > getMessageAsync(get_message_data dataPackage)
Collects a message from the discord servers.
static co_routine< role_data > getRoleAsync(get_role_data dataPackage)
Collects a role_data from the discord servers.
static role_cache_data getCachedRole(get_role_data dataPackage)
Collects a given role from the library's cache.
uint64_t id
The snowflake id.
static co_routine< stage_instance_data > getStageInstanceAsync(get_stage_instance_data dataPackage)
Collects a stage_instance_data.
A class for converting snowflake id's into the data structures they represent.
static user_cache_data getCachedUser(get_user_data dataPackage)
Collects a given user from the library's cache.
static co_routine< user_data > getUserAsync(get_user_data dataPackage)
Collects a given user from the discord servers.
The main namespace for the forward-facing interfaces.