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.
Fields
id: GuildId
The unique Id of the guild.
Can be used to calculate creation date.
icon: Option<String>
The hash of the icon of the guild.
This can be used to generate a URL to the guild's icon image.
name: String
The name of the guild.
owner: bool
Indicator of whether the current user is the owner.
permissions: Permissions
The permissions that the current user has.
Methods
impl GuildInfo
[src]
fn icon_url(&self) -> Option<String>
[src]
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
[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