[−][src]Struct spectacles_model::guild::Guild
A Discord Guild, commonly referred to as a "server".
Fields
id: Snowflake
The snowflake ID of this guild.
name: String
The 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: String
The ID of the guild owner.
permissions: i32
The permissions that the user has in this guild.
region: String
The 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: bool
Whether or not the guild can be embedded in a widget.
embed_channel_id: String
The channel ID that an embed widget will be generated for.
member_count: i32
The 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: ExplicitContentFilter
The explicit content filter level for this guild.
application_id: Option<String>
The ID of the application which created the guild, if applicable.
verification_level: VerificationLevel
The verification level, which determines which users can chat in a guild.
mfa_level: MfaLevel
The 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: String
The time that this guild was joined.
large: bool
Whether this guild is considered a large guild by Discord.
Whether or not this guild is available.
widget_enabled: bool
Whether or not the server widget is enabled.
widget_channel_id: String
The ID of the guild's widget channel, if one exists.
default_message_notifications: DefaultMessageNotifications
The 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.
Trait Implementations
impl Clone for Guild
[src]
fn clone(&self) -> Guild
[src]
default fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Guild
[src]
impl Serialize for Guild
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for Guild
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,