![]() |
DiscordCoreAPI
A Discord bot library written in C++, with custom asynchronous coroutines.
|
A discord Guild. Used to connect to/disconnect from voice. More...
#include <FoundationEntities.hpp>
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< ChannelData > | channels {} |
Custom guild emojis. | |
DefaultMessageNotificationLevel | defaultMessageNotifications {} |
Default message notifications level. | |
std::string | description {} |
The description of a guild. | |
DiscordCoreClient * | discordCoreClient {} |
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< EmojiData > | emoji {} |
Custom guild emojis. | |
ExplicitContentFilterLevel | explicitContentFilter {} |
Explicit content filter level. | |
jsonifier::vector< std::string > | features {} |
Enabled guild features. | |
jsonifier::vector< GuildScheduledEventData > | guildScheduledEvents {} |
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< GuildMemberData > | members {} |
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< PresenceUpdateData > | presences {} |
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< RoleData > | roles {} |
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< StageInstanceData > | stageInstances {} |
Stage instances in the guild. | |
jsonifier::vector< StickerData > | stickers {} |
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< ChannelData > | threads {} |
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. | |
VoiceConnection * | voiceConnection {} |
Voice connection potentially held by the current Guild. | |
jsonifier::vector< VoiceStateDataLight > | voiceStates {} |
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 | |
![]() | |
VoiceConnection & | connectToVoice (const Snowflake guildMemberId, const Snowflake channelId=0, bool selfDeaf=false, bool selfMute=false, StreamInfo streamInfoNew=StreamInfo{}) |
For connecting to an individual voice channel. More... | |
std::string DiscordCoreAPI::GuildData::name {} |
Guild name (2-100 characters, excluding trailing and leading whitespace).
Definition at line 2523 of file FoundationEntities.hpp.