Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents the response message from the bot bound to CommandMessage

Hierarchy

  • ResponseMessage

Index

Constructors

Properties

_commandMessage: CommandMessage = ...
_interaction: CommandInteraction<CacheType> | SelectMenuInteraction<CacheType> = ...
_message: Message<boolean> = ...
isMessage: boolean = false

Accessors

  • get attachments(): Collection<string, MessageAttachment>
  • the attachment of this response message

    Returns Collection<string, MessageAttachment>

  • get author(): User
  • get channel(): DMChannel | PartialDMChannel | NewsChannel | TextChannel | ThreadChannel
  • the channel of this response message

    Returns DMChannel | PartialDMChannel | NewsChannel | TextChannel | ThreadChannel

  • get channelId(): string
  • get components(): MessageActionRow[]
  • get content(): string
  • get createdAt(): Date
  • get createdTimestamp(): number
  • get embeds(): MessageEmbed[]
  • get guild(): Guild
  • get id(): string
  • get member(): GuildMember
  • get reactions(): ReactionManager
  • get url(): string

Methods

  • delete(): Promise<Message<boolean>>
  • react(emoji: EmojiIdentifierResolvable): Promise<MessageReaction>
  • React to the response message

    Parameters

    • emoji: EmojiIdentifierResolvable

      reaction emoji

    Returns Promise<MessageReaction>

    message reaction

  • createFromInteraction(interaction: CommandInteraction<CacheType> | SelectMenuInteraction<CacheType>, message: Message<boolean> | APIMessage, commandMessage: CommandMessage): ResponseMessage
  • Initialize this from interaction, response message and CommandMessage

    Parameters

    • interaction: CommandInteraction<CacheType> | SelectMenuInteraction<CacheType>

      interaction an user sent

    • message: Message<boolean> | APIMessage

      response message

    • commandMessage: CommandMessage

      CommandMessage

    Returns ResponseMessage

    new ResponseMessage instance

Generated using TypeDoc