Skip to content

DiscordChannelMessage

Defined in: bot/bot.type.ts:689

A message listed back from a channel, with who wrote it.

optional author?: object

Defined in: bot/bot.type.ts:691

Who wrote the message; absent when Discord omits it.

optional bot?: boolean

Whether the author is a bot.

id: string

The author’s user id.

optional username?: string

The author’s username.


channel_id: string

Defined in: bot/bot.type.ts:526

Id of the channel the message is in.

DiscordMessage.channel_id


content: string

Defined in: bot/bot.type.ts:528

The message text.

DiscordMessage.content


optional embeds?: DiscordMessageEmbed[]

Defined in: bot/bot.type.ts:706

The embeds drawn under the message (a link preview or one a bot built); only their kind is typed here.


optional flags?: number

Defined in: bot/bot.type.ts:708

The message’s flags bitfield; see MessageFlag.


id: string

Defined in: bot/bot.type.ts:524

The message id.

DiscordMessage.id


optional pinned?: boolean

Defined in: bot/bot.type.ts:702

Whether the message is pinned in its channel.


optional thread?: DiscordMessageThread

Defined in: bot/bot.type.ts:704

The thread started on this message, when there is one.


optional webhook_id?: string

Defined in: bot/bot.type.ts:700

Id of the webhook that posted the message, when one did.