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

The unique Id of the guild.

Can be used to calculate creation date.

The hash of the icon of the guild.

This can be used to generate a URL to the guild's icon image.

The name of the guild.

Indicator of whether the current user is the owner.

The permissions that the current user has.

Methods

impl GuildInfo
[src]

[src]

Returns the formatted URL of the guild's icon, if the guild has an icon.

Trait Implementations

impl Clone for GuildInfo
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for GuildInfo
[src]

[src]

Formats the value using the given formatter.