Class Message<InGuild>

Type Parameters

  • InGuild extends boolean = boolean

Hierarchy

Constructors

  • Type Parameters

    • InGuild extends boolean = boolean

    Parameters

    Returns Message<InGuild>

Properties

_cacheType: InGuild
activity: null | MessageActivity
applicationId: null | string
attachments: Collection<string, Attachment>
author: User
call: null | MessageCall
channelId: string
client: Client<true>
content: string
createdTimestamp: number
editedTimestamp: null | number
embeds: Embed[]
flags: Readonly<MessageFlagsBitField>
groupActivityApplication: null | ClientApplication
guildId: If<InGuild, string, null>
id: string
interaction: null | MessageInteraction

Deprecated

Use interactionMetadata instead.

interactionMetadata: null | MessageInteractionMetadata
mentions: MessageMentions<InGuild>
nonce: null | string | number
pinned: boolean
poll: null | Poll
position: null | number
reactions: ReactionManager
reference: null | MessageReference
roleSubscriptionData: null | RoleSubscriptionData
stickers: Collection<string, Sticker>
system: boolean
tts: boolean
webhookId: null | string

Accessors

  • get bulkDeletable(): boolean
  • Returns boolean

  • get cleanContent(): string
  • Returns string

  • get createdAt(): Date
  • Returns Date

  • get crosspostable(): boolean
  • Returns boolean

  • get deletable(): boolean
  • Returns boolean

  • get editable(): boolean
  • Returns boolean

  • get editedAt(): null | Date
  • Returns null | Date

  • get guild(): If<InGuild, Guild, null>
  • Returns If<InGuild, Guild, null>

  • get hasThread(): boolean
  • Returns boolean

  • get member(): null | GuildMember
  • Returns null | GuildMember

  • get partial(): false
  • Returns false

  • get pinnable(): boolean
  • Returns boolean

  • get url(): string
  • Returns string

Methods

  • Returns Promise<NonPartialGroupDMChannel<Message<InGuild>>>

  • Returns Promise<NonPartialGroupDMChannel<Message<InGuild>>>

  • Parameters

    Returns Promise<NonPartialGroupDMChannel<Message<InGuild>>>

  • Parameters

    • message: Message<boolean>
    • rawData: unknown

    Returns boolean

  • Parameters

    • Optional force: boolean

    Returns Promise<NonPartialGroupDMChannel<Message<InGuild>>>

  • Returns Promise<NonPartialGroupDMChannel<Message<InGuild>>>

  • Returns this is Message<true>

  • Parameters

    • Optional reason: string

    Returns Promise<NonPartialGroupDMChannel<Message<InGuild>>>

  • Returns Promise<NonPartialGroupDMChannel<Message<InGuild>>>

  • Parameters

    Returns Promise<NonPartialGroupDMChannel<Message<InGuild>>>

  • Parameters

    • Optional suppress: boolean

    Returns Promise<NonPartialGroupDMChannel<Message<InGuild>>>

  • Returns unknown

  • Returns string

  • Parameters

    • Optional reason: string

    Returns Promise<NonPartialGroupDMChannel<Message<InGuild>>>

  • Returns string

Generated using TypeDoc