Enum serenity::model::ReactionType [] [src]

pub enum ReactionType {
    Custom {
        id: EmojiId,
        name: String,
    },
    Unicode(String),
}

The type of a Reaction sent.

Variants

A reaction with a Guilds custom Emoji, which is unique to the guild.

Fields

The Id of the custom Emoji.

The name of the custom emoji. This is primarily used for decoration and distinguishing the emoji client-side.

A reaction with a twemoji.

Methods

impl ReactionType
[src]

Creates a data-esque display of the type. This is not very useful for displaying, as the primary client can not render it, but can be useful for debugging.

Note: This is mainly for use internally. There is otherwise most likely little use for it.

Trait Implementations

impl Clone for ReactionType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ReactionType
[src]

Formats the value using the given formatter.

impl From<Emoji> for ReactionType
[src]

Performs the conversion.

impl From<String> for ReactionType
[src]

Performs the conversion.

impl Display for ReactionType
[src]

Formats the reaction type, displaying the associated emoji in a way that clients can understand.

If the type is a custom emoji, then refer to the documentation for emoji's formatter on how this is displayed. Otherwise, if the type is a unicode, then the inner unicode is displayed.