Class MessageManager

Hierarchy (View Summary)

Constructors

Properties

cache: Collection<string, Message> = ...
client: Client

Methods

  • Delete a Guilded message.

    Parameters

    • channelId: string

      The ID of the Guilded channel.

    • messageId: string

      The ID of the Guilded message.

    Returns Promise<void>

  • Fetch a message from Guilded channel.

    Parameters

    • channelId: string

      The ID of the Guilded channel.

    • messageId: string
    • forced: boolean = false

      Whether to forcefully fetch the message from the API, or first attempt to find it in the cache.

    Returns Promise<Message>

    The message.

  • Fetch all of the messages from a Guilded channel.

    Parameters

    • channelId: string

      The ID of the Guilded channel.

    Returns Promise<Message[]>

    The messages.

  • Pin a Guilded message.

    Parameters

    • channelId: string

      The ID of the Guilded channel.

    • messageId: string

      The ID of the Guilded message.

    Returns Promise<void>

  • Unpin a Guilded message.

    Parameters

    • channelId: string

      The ID of the Guilded channel.

    • messageId: string

      The ID of the Guilded message.

    Returns Promise<void>

  • Update a Guilded message.

    Parameters

    • channelId: string

      The ID of the Guilded channel.

    • messageId: string

      The ID of the Guilded message.

    • data: UpdateMessageBody

      Message data.

    Returns Promise<Message>

    The message.