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

A discord Guild. Used to connect to/disconnect from voice. More...

#include <FoundationEntities.hpp>

Inheritance diagram for DiscordCoreAPI::GuildData:

Public Data Members

Snowflake afkChannelId {}
 Id of afk channel.
uint32_t afkTimeout {}
 Afk timeout in seconds.
Snowflake applicationId {}
 Application id of the guild creator if it is bot-created.
uint32_t approximateMemberCount {}
 Approximate number of members in this guild, returned from the GET /guilds/id and /users/me/guilds.
uint32_t approximatePresenceCount {}
 Approximate number of non-offline members in this guild, returned sometimes.
std::string banner {}
 Banner hash.
jsonifier::vector< ChannelDatachannels {}
 Custom guild emojis.
DefaultMessageNotificationLevel defaultMessageNotifications {}
 Default message notifications level.
std::string description {}
 The description of a guild.
DiscordCoreClientdiscordCoreClient {}
 A pointer to the DiscordCoreClient.
std::string discovery {}
 Url to the Guild's icon.
std::string discoverySplash {}
 Discovery splash hash; only present for guilds with the "DISCOVERABLE" feature.
jsonifier::vector< EmojiDataemoji {}
 Custom guild emojis.
ExplicitContentFilterLevel explicitContentFilter {}
 Explicit content filter level.
jsonifier::vector< std::string > features {}
 Enabled guild features.
jsonifier::vector< GuildScheduledEventDataguildScheduledEvents {}
 Scheduled events in the guild.
std::string icon {}
 Icon hash.
Snowflake id {}
 Guild id.
TimeStampParse joinedAt {}
 When the bot joined this Guild.
bool large {}
 true if this is considered a large guild.
uint32_t maxMembers {}
 The maximum number of members for the guild.
uint32_t maxPresences {}
 The maximum number of presences for the guild (null is always returned, apart from the largest of guilds).
uint32_t maxStageVideoChannelUsers {}
 The maximum amount of users in a stage video channel.
uint32_t maxVideoChannelUsers {}
 The maximum amount of users in a video channel.
uint32_t memberCount {}
 The number of members in this guild.std::string region{};///< Voice region id for the guild (deprecated).
jsonifier::vector< GuildMemberDatamembers {}
 Custom guild emojis.
MFALevel mfaLevel {}
 Required MFA level for the guild.
std::string name {}
 The flags for this Guild. More...
GuildNSFWLevel nsfwLevel {}
 Guild NSFW level.
bool owner {}
 True if the user is the owner of the guild.
Snowflake ownerId {}
 Id of owner.
PermissionsParse permissions {}
 Total permissions for the user in the guild (excludes overwrites).
std::string preferredLocale {}
 The preferred locale of a Community guild; used in server discovery and notices from Discord.
bool premiumProgressBarEnabled {}
 Whether the guild has the boost progress bar enabled.
uint32_t premiumSubscriptionCount {}
 The number of boosts this guild currently has.
PremiumTier premiumTier {}
 Premium tier (Server Boost level).
jsonifier::vector< PresenceUpdateDatapresences {}
 Presences of the members in the guild.
Snowflake publicUpdatesChannelId {}
 The id of the channel where admins and moderators of Community guilds receive notices from Discord.
jsonifier::vector< RoleDataroles {}
 Roles in the guild.
Snowflake rulesChannelId {}
 The id of the channel where Community guilds can display rules and/or guidelines.
Snowflake safetyAlertsChannelId {}
 The id of the channel where admins and moderators of Community guilds receive safety alerts.
std::string splash {}
 Splash hash.
jsonifier::vector< StageInstanceDatastageInstances {}
 Stage instances in the guild.
jsonifier::vector< StickerDatastickers {}
 Custom guild stickers.
SystemChannelFlags systemChannelFlags {}
 System channel flags.
Snowflake systemChannelId {}
 The id of the channel where guild notices such as welcome messages and boost events are posted.
jsonifier::vector< ChannelDatathreads {}
 All active threads in the guild that the current user has permission to view.
bool unavailable {}
 true if this guild is unavailable due to an outage.
std::string vanityUrlCode {}
 The vanity url code for the guild.
VerificationLevel verificationLevel {}
 Verification level required for the guild.
VoiceConnectionvoiceConnection {}
 Voice connection potentially held by the current Guild.
jsonifier::vector< VoiceStateDataLightvoiceStates {}
 Voice states for the current GuildMembers.
WelcomeScreenData welcomeScreen {}
 The welcome screen of a Community guild, shown to new members, returned in an Invite's guild object.
Snowflake widgetChannelId {}
 The channel id that the widget will generate an invite to, or null if set to no invite.
bool widgetEnabled {}
 True if the server widget is enabled.

Additional Inherited Members

- Public Member Functions inherited from DiscordCoreAPI::ConnectToVoice< GuildData, DiscordCoreClient, GuildMembers >
VoiceConnectionconnectToVoice (const Snowflake guildMemberId, const Snowflake channelId=0, bool selfDeaf=false, bool selfMute=false, StreamInfo streamInfoNew=StreamInfo{})
 For connecting to an individual voice channel. More...

Member Data Documentation

◆ name

std::string DiscordCoreAPI::GuildData::name {}

Guild name (2-100 characters, excluding trailing and leading whitespace).

Definition at line 2523 of file FoundationEntities.hpp.

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