DiscordChannelMessage
Defined in: bot/bot.type.ts:689
A message listed back from a channel, with who wrote it.
Extends
Section titled “Extends”Properties
Section titled “Properties”author?
Section titled “author?”
optionalauthor?:object
Defined in: bot/bot.type.ts:691
Who wrote the message; absent when Discord omits it.
optionalbot?:boolean
Whether the author is a bot.
id:
string
The author’s user id.
username?
Section titled “username?”
optionalusername?:string
The author’s username.
channel_id
Section titled “channel_id”channel_id:
string
Defined in: bot/bot.type.ts:526
Id of the channel the message is in.
Inherited from
Section titled “Inherited from”content
Section titled “content”content:
string
Defined in: bot/bot.type.ts:528
The message text.
Inherited from
Section titled “Inherited from”embeds?
Section titled “embeds?”
optionalembeds?: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.
flags?
Section titled “flags?”
optionalflags?: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.
Inherited from
Section titled “Inherited from”pinned?
Section titled “pinned?”
optionalpinned?:boolean
Defined in: bot/bot.type.ts:702
Whether the message is pinned in its channel.
thread?
Section titled “thread?”
optionalthread?:DiscordMessageThread
Defined in: bot/bot.type.ts:704
The thread started on this message, when there is one.
webhook_id?
Section titled “webhook_id?”
optionalwebhook_id?:string
Defined in: bot/bot.type.ts:700
Id of the webhook that posted the message, when one did.