Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WebhookMessage<T>

Type parameters

  • T

Hierarchy

Index

Constructors

constructor

Properties

Readonly author

author: User<T>

Author of this message.

since

0.0.1

Readonly client

client: T

content

content: string

Contents of the message.

since

0.0.1

embeds

embeds: Embed[] = []

The embedded data.

since

0.0.1

Readonly id

id: string

Id of the message.

since

0.0.1

Optional Readonly nonce

nonce: string | null

Used for validating a message was sent.

since

0.0.1

tts

tts: boolean

Whether or not this was a TTS message.

since

0.0.1

Readonly type

type: MessageType

Optional Readonly webhookID

webhookID: string | null

If the message is generated by a webhook, this is the webhook's id.

since

0.0.1

Accessors

createdAt

  • get createdAt(): Date

createdTimestamp

  • get createdTimestamp(): number

Methods

Protected _patch

  • _patch(_data: Partial<APIMessageData>): this

clone

  • clone(): this

toJSON

  • toJSON(): Record<string, any>

toString

  • toString(): string

valueOf

  • valueOf(): string

Generated using TypeDoc