pub struct Guild {Show 31 fields
pub id: Snowflake,
pub name: String,
pub icon: Option<String>,
pub splash: Option<String>,
pub owner: Option<bool>,
pub owner_id: String,
pub permissions: i32,
pub region: String,
pub afk_channel_id: Option<String>,
pub afk_timeout: Option<i32>,
pub embed_enabled: bool,
pub embed_channel_id: String,
pub member_count: i32,
pub features: Vec<String>,
pub roles: Vec<Role>,
pub emojis: Vec<Emoji>,
pub explicit_content_filter: ExplicitContentFilter,
pub application_id: Option<String>,
pub verification_level: VerificationLevel,
pub mfa_level: MfaLevel,
pub system_channel_id: Option<String>,
pub joined_at: String,
pub large: bool,
pub unavailable: bool,
pub widget_enabled: bool,
pub widget_channel_id: String,
pub default_message_notifications: DefaultMessageNotifications,
pub voice_states: Vec<VoiceState>,
pub channels: Vec<Channel>,
pub members: Vec<GuildMember>,
pub presences: Option<Vec<Presence>>,
}Expand description
A Discord Guild, commonly referred to as a “server”.
Fields§
§id: SnowflakeThe snowflake ID of this guild.
name: StringThe name of the guild.
icon: Option<String>The guild’s icon hash. Will be a None value if one is not set.
splash: Option<String>The guild’s splash hash. Will be a None value if it does not exist.
owner: Option<bool>Whether or not the user is an owner of the guild.
owner_id: StringThe ID of the guild owner.
permissions: i32The permissions that the user has in this guild.
region: StringThe region in which this guild is located.
afk_channel_id: Option<String>The AFK channel ID for this guild.
afk_timeout: Option<i32>The AFK channel timeout for this guild.
embed_enabled: boolWhether or not the guild can be embedded in a widget.
embed_channel_id: StringThe channel ID that an embed widget will be generated for.
member_count: i32The amount of members that are currently in this guild.
features: Vec<String>A list of features that this guild currently has.
roles: Vec<Role>A collection of roles that belong to this guild.
emojis: Vec<Emoji>A collection of emotes that belong to this guild.
explicit_content_filter: ExplicitContentFilterThe explicit content filter level for this guild.
application_id: Option<String>The ID of the application which created the guild, if applicable.
verification_level: VerificationLevelThe verification level, which determines which users can chat in a guild.
mfa_level: MfaLevelThe MFA authentication level for this guild.
system_channel_id: Option<String>The ID of the channel in which system messages are sent to.
joined_at: StringThe time that this guild was joined.
large: boolWhether this guild is considered a large guild by Discord.
Whether or not this guild is available.
widget_enabled: boolWhether or not the server widget is enabled.
widget_channel_id: StringThe ID of the guild’s widget channel, if one exists.
default_message_notifications: DefaultMessageNotificationsThe default message notification setting for this guild.
voice_states: Vec<VoiceState>A collection of guild voice states.
channels: Vec<Channel>A collection of channels in this guild.
members: Vec<GuildMember>A collection of members in this guild.
presences: Option<Vec<Presence>>A collection of presences in this guild.