[][src]Struct spectacles_model::guild::Guild

pub struct Guild {
    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>>,
}

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.

unavailable: bool

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]

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]

impl<'de> Deserialize<'de> for Guild[src]

Auto Trait Implementations

impl Send for Guild

impl Sync for Guild

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]