Struct serenity::model::ChannelId [] [src]

pub struct ChannelId(pub u64);

An identifier for a Channel

Methods

impl ChannelId
[src]

Search the cache for the channel with the Id.

Search the cache for the channel. If it can't be found, the channel is requested over REST.

Retrieves the channel's webhooks.

Note: Requires the Manage Webhooks permission.

impl ChannelId
[src]

Retrieves the time that the Id was created at.

Trait Implementations

impl From<Channel> for ChannelId
[src]

Gets the Id of a Channel.

impl From<PrivateChannel> for ChannelId
[src]

Gets the Id of a private channel.

impl From<GuildChannel> for ChannelId
[src]

Gets the Id of a guild channel.

impl Display for ChannelId
[src]

Formats the value using the given formatter.

impl Mentionable for ChannelId
[src]

impl FromStr for ChannelId
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

impl Copy for ChannelId
[src]

impl Clone for ChannelId
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ChannelId
[src]

Formats the value using the given formatter.

impl Eq for ChannelId
[src]

impl Hash for ChannelId
[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 ChannelId
[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 ChannelId
[src]

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

impl From<u64> for ChannelId
[src]

Performs the conversion.

impl PartialEq for ChannelId
[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 ChannelId
[src]

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

This method tests for !=.