Struct serenity::model::GuildInfo
[−]
[src]
pub struct GuildInfo { pub id: GuildId, pub icon: Option<String>, pub name: String, pub owner: bool, pub permissions: Permissions, }
Basic information about a guild used for oauth.
Fields
id: GuildId
Id of the Guild. Can be used to calculate the creation date.
icon: Option<String>
The guild's icon.
name: String
The guild's name.
owner: bool
True if you're the owner of the guild.
permissions: Permissions
Permissions that you have in the guild.
Methods
impl GuildInfo
[src]
fn icon_url(&self) -> Option<String>
Returns the formatted URL of the guild's icon, if the guild has an icon.
Trait Implementations
impl Clone for GuildInfo
[src]
fn clone(&self) -> GuildInfo
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more