Struct serenity::model::UserId [] [src]

pub struct UserId(pub u64);

An identifier for a User

Methods

impl UserId
[src]

Creates a direct message channel between the current user and the user. This can also retrieve the channel if one already exists.

Deletes a profile note from a user.

Edits the note that the current user has set for another user.

Use delete_note to remove a note.

Refer to the documentation for User::edit_note for more information.

Note: Requires that the current user be a user account.

Search the cache for the user with the Id.

Gets a user by its Id over the REST API.

Note: The current user must be a bot user.

impl UserId
[src]

Retrieves the time that the Id was created at.

Trait Implementations

impl Mentionable for UserId
[src]

impl FromStr for UserId
[src]

The associated error which can be returned from parsing.

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

impl From<CurrentUser> for UserId
[src]

Gets the Id of a CurrentUser struct.

impl From<Member> for UserId
[src]

Gets the Id of a Member.

impl From<User> for UserId
[src]

Gets the Id of a User.

impl Display for UserId
[src]

Formats the value using the given formatter.

impl Copy for UserId
[src]

impl Clone for UserId
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for UserId
[src]

Formats the value using the given formatter.

impl Eq for UserId
[src]

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

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

impl From<u64> for UserId
[src]

Performs the conversion.

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

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

This method tests for !=.