Class Message

Constructors

Properties

channelId: string

The channel ID where the message was sent.

client: Client
content?: string

The content of the message.

createdAt: Date

The date when the message was created.

createdBy: string

The ID of the user who sent the message.

createdByWebhookId?: string

The ID of the webhook who sent the message (if it exists).

deletedAt?: Date

The date when the message was deleted.

embeds?: Embed[]

The embeds of the message.

groupId?: string

The group ID where the message was sent.

hiddenLinkPreviewUrls?: string[]

The hidden link preview URLs of the message.

id: string

The ID of the message.

mentions?: MentionsPayload

The mentions of the message.

pinned?: boolean

Whether the message is pinned.

private?: boolean

Whether the message was privately sent.

replyMessageIds?: string[]

The IDs of the messages which the message was replying to.

serverId?: string

The server ID where the message was sent.

silent?: boolean

Whether the message was silently sent.

type: MessageType

The type of the message (default or system).

updatedAt?: Date

The date when the message was last updated.

Accessors

Methods