Struct serenity::model::GuildId [] [src]

pub struct GuildId(pub u64);

An identifier for a Guild

Methods

impl GuildId
[src]

Search the cache for the guild.

Requests the guild over REST.

Note that this will not be a complete guild, as REST does not send all data with a guild retrieval.

Mentions the Guild's default channel.

Returns this Id as a ChannelId, which is useful when needing to use the guild Id to send a message to the default channel.

Retrieves the guild's webhooks.

Note: Requires the Manage Webhooks permission.

impl GuildId
[src]

Retrieves the time that the Id was created at.

Trait Implementations

impl From<PartialGuild> for GuildId
[src]

Gets the Id of a partial guild.

impl From<GuildInfo> for GuildId
[src]

Gets the Id of Guild information struct.

impl From<InviteGuild> for GuildId
[src]

Gets the Id of Invite Guild struct.

impl From<Guild> for GuildId
[src]

Gets the Id of Guild.

impl Copy for GuildId
[src]

impl Clone for GuildId
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for GuildId
[src]

Formats the value using the given formatter.

impl Eq for GuildId
[src]

impl Hash for GuildId
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl PartialOrd for GuildId
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for GuildId
[src]

This method returns an Ordering between self and other. Read more

impl Display for GuildId
[src]

Formats the value using the given formatter.

impl From<u64> for GuildId
[src]

Performs the conversion.

impl PartialEq for GuildId
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialEq<u64> for GuildId
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.