37 template<>
struct to_entity<guild_data> {
38 guild_data toEntity(snowflake
id) {
39 if (guilds::doWeCacheGuilds()) {
49 if (guilds::doWeCacheGuilds()) {
57 template<>
struct to_entity<channel_data> {
58 channel_data toEntity(snowflake
id) {
59 if (guilds::doWeCacheGuilds()) {
69 if (guilds::doWeCacheGuilds()) {
77 template<>
struct to_entity<guild_member_data> {
78 guild_member_data toEntity(snowflake
id, snowflake idTwo) {
79 if (guilds::doWeCacheGuilds()) {
87 template<>
struct to_entity<message_data> {
88 message_data toEntity(snowflake idNew, snowflake channelIdNew) {
93 template<>
struct to_entity<stage_instance_data> {
94 stage_instance_data toEntity(snowflake idNew) {
static channel_cache_data getCachedChannel(const get_channel_data dataPackage)
Collects a channel from the library's cache.
static co_routine< channel_data > getChannelAsync(const get_channel_data dataPackage)
Collects a channel from the discord servers.
static guild_member_cache_data getCachedGuildMember(const get_guild_member_data dataPackage)
Collects a guild_member from the library's cache.
static co_routine< guild_member_data > getGuildMemberAsync(const get_guild_member_data dataPackage)
Collects a guild_member from the discord servers.
static co_routine< guild_data > getGuildAsync(const get_guild_data dataPackage)
Collects a guild from the discord servers.
static guild_cache_data getCachedGuild(const get_guild_data dataPackage)
Collects a guild from the library's cache.
static co_routine< message_data > getMessageAsync(const get_message_data dataPackage)
Collects a message from the discord servers.
static co_routine< role_data > getRoleAsync(const get_role_data dataPackage)
Collects a role_data from the discord servers.
static role_cache_data getCachedRole(const get_role_data dataPackage)
Collects a given role from the library's cache.
static co_routine< stage_instance_data > getStageInstanceAsync(const get_stage_instance_data dataPackage)
Collects a stage_instance_data.
static user_cache_data getCachedUser(const get_user_data dataPackage)
Collects a given user from the library's cache.
static co_routine< user_data > getUserAsync(const get_user_data dataPackage)
Collects a given user from the discord servers.
The main namespace for the forward-facing interfaces.