Represents a message reaction on Guilded.

Example

new MessageReaction(message, rawReaction);

Hierarchy

  • Base<number>
    • MessageReaction

Constructors

Properties

channelId: string

The ID of the channel the message belongs to.

client: Client
createdBy: string

The ID of the user that created the reaction.

emote: APIEmote

The emote of the reaction.

id: number
message: Message
messageId: string

The ID of the message.

Accessors

  • get author(): undefined | ServerMember
  • The server member that created the reaction.

    Returns undefined | ServerMember

  • get channel(): ChatChannel
  • The channel the message belongs to.

    Returns ChatChannel

  • get isCached(): boolean
  • Whether the reaction is cached.

    Returns boolean

  • get server(): undefined | Server
  • The server the message belongs to.

    Returns undefined | Server

  • get serverId(): undefined | string
  • The ID of the server the message belongs to.

    Returns undefined | string

Methods

  • Fetch the server member that created the reaction.

    Returns

    The fetched server member.

    Example

    reaction.fetchAuthor();
    

    Parameters

    • Optional options: FetchOptions

      The options to fetch the server member with.

    Returns Promise<ServerMember>

  • Fetch the server the message belongs to.

    Returns

    The fetched server.

    Example

    reaction.fetchServer();
    

    Parameters

    • Optional options: FetchOptions

      The options to fetch the server with.

    Returns Promise<Server>

  • Remove the reaction from the message.

    Example

    reaction.remove();
    

    Returns Promise<void>