Struct serenity::model::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
id: GuildId
icon: Option<String>
name: String
splash_hash: Option<String>
text_channel_count: Option<u64>
voice_channel_count: Option<u64>
Methods
impl InviteGuild
[src]
fn splash_url(&self) -> Option<String>
[src]
Returns the formatted URL of the guild's splash image, if one exists.
impl InviteGuild
[src]
[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 Clone for InviteGuild
[src]
fn clone(&self) -> InviteGuild
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more