Represents the response message from the bot bound to CommandMessage

Hierarchy

  • ResponseMessage

Constructors

Properties

_commandMessage: CommandMessage = ...
_interaction: null | default<AnyTextableGuildChannel, ApplicationCommandTypes> | default<any, AnyTextableGuildChannel> | default<AnyTextableGuildChannel> = null
_message: default<AnyTextableGuildChannel> = ...
isMessage: boolean = false

Accessors

  • get attachments(): default<RawAttachment, default, []>
  • the attachment of this response message

    Returns default<RawAttachment, default, []>

  • get channel(): AnyTextableGuildChannel
  • the channel of this response message

    Returns AnyTextableGuildChannel

  • get channelId(): string
  • the channel id of this response message

    Returns string

  • get components(): MessageComponent[]
  • the components of this response message

    Returns MessageComponent[]

  • get content(): string
  • the message content of this response message

    Returns string

  • get createdTimestamp(): Date
  • the timestamp of this response message

    Returns Date

  • get member(): undefined | default
  • the member of this response message

    Returns undefined | default

  • get reactions(): MessageReaction[]
  • the reaction of this response message

    Returns MessageReaction[]

Methods

  • React to the response message

    Parameters

    • emoji: string

      reaction emoji

    Returns Promise<void>

    message reaction

  • Internal

    Initialize this from interaction, response message and CommandMessage

    Parameters

    • interaction: default<AnyTextableGuildChannel, ApplicationCommandTypes> | default<any, AnyTextableGuildChannel> | default<AnyTextableGuildChannel>

      interaction an user sent. this must be CommandInteraction or ComponentInteraction

    • message: default<AnyTextableGuildChannel>

      response message

    • commandMessage: CommandMessage

      CommandMessage

    Returns ResponseMessage

    new ResponseMessage instance

Generated using TypeDoc