Struct serenity::model::invite::InviteGuild[][src]

pub struct InviteGuild {
    pub id: GuildId,
    pub icon: Option<String>,
    pub name: String,
    pub splash_hash: Option<String>,
    pub text_channel_count: Option<u64>,
    pub voice_channel_count: Option<u64>,
}

A minimal amount of information about the guild an invite points to.

Fields

Methods

impl InviteGuild
[src]

Returns the formatted URL of the guild's splash image, if one exists.

impl InviteGuild
[src]

Returns the Id of the shard associated with the guild.

When the cache is enabled this will automatically retrieve the total number of shards.

Note: When the cache is enabled, this function unlocks the cache to retrieve the total number of shards in use. If you already have the total, consider using utils::shard_id.

Trait Implementations

impl From<InviteGuild> for GuildId
[src]

Gets the Id of Invite Guild struct.

impl<'a> From<&'a InviteGuild> for GuildId
[src]

Gets the Id of Invite Guild struct.

impl Clone for InviteGuild
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for InviteGuild
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for InviteGuild

impl Sync for InviteGuild