Hierarchy

  • ChatApi

Constructors

Properties

Accessors

Methods

Constructors

Properties

Accessors

Methods

  • Delete a message from a channel

    Example:

    api.chat.deleteMessage(1, 1024).then(() => {
    console.log("Delete successfully");
    }).catch((err) => {
    console.log("Delete failed!");
    console.error(err);
    });

    Parameters

    • channelId: number

      The id of channel

    • messageId: number

      The id of message to delete

    Returns Promise<any>

  • Edit a message of a channel

    Parameters

    • channelId: number

      The id of channel

    • messageId: number

      The id of message

    • message: string

      new message, raw text

    • Optional options: ChatMessageOptions

    Returns Promise<any>

  • Send a message to channel

    Parameters

    • channelId: number

      The id of channel

    • message: string

      message raw text

    • Optional options: ChatMessageOptions

      message options

    Returns Promise<any>

Generated using TypeDoc