APIMessage
Defined in: packages/types/src/index.ts:452
Raw Discord message object.
Properties
Section titled “Properties”activity?
Section titled “activity?”
optionalactivity?:Record<string,unknown>
Defined in: packages/types/src/index.ts:471
application?
Section titled “application?”
optionalapplication?:Record<string,unknown>
Defined in: packages/types/src/index.ts:472
application_id?
Section titled “application_id?”
optionalapplication_id?:string
Defined in: packages/types/src/index.ts:473
attachments?
Section titled “attachments?”
optionalattachments?:APIAttachment[]
Defined in: packages/types/src/index.ts:464
author
Section titled “author”author:
UserData
Defined in: packages/types/src/index.ts:455
channel_id
Section titled “channel_id”channel_id:
string
Defined in: packages/types/src/index.ts:454
components?
Section titled “components?”
optionalcomponents?:APIMessageComponent[]
Defined in: packages/types/src/index.ts:479
content
Section titled “content”content:
string
Defined in: packages/types/src/index.ts:456
edited_timestamp?
Section titled “edited_timestamp?”
optionaledited_timestamp?:string|null
Defined in: packages/types/src/index.ts:458
embeds?
Section titled “embeds?”
optionalembeds?:APIEmbed[]
Defined in: packages/types/src/index.ts:465
flags?
Section titled “flags?”
optionalflags?:number
Defined in: packages/types/src/index.ts:475
guild_id?
Section titled “guild_id?”
optionalguild_id?:string
Defined in: packages/types/src/index.ts:488
id:
string
Defined in: packages/types/src/index.ts:453
interaction_metadata?
Section titled “interaction_metadata?”
optionalinteraction_metadata?:Record<string,unknown>
Defined in: packages/types/src/index.ts:477
member?
Section titled “member?”
optionalmember?:Omit<APIGuildMember,"user"> &object
Defined in: packages/types/src/index.ts:490
The author’s guild member, on guild messages from the Gateway (without user; the author is the user).
Type Declaration
Section titled “Type Declaration”
optionaluser?:UserData
mention_channels?
Section titled “mention_channels?”
optionalmention_channels?:Record<string,unknown>[]
Defined in: packages/types/src/index.ts:463
mention_everyone?
Section titled “mention_everyone?”
optionalmention_everyone?:boolean
Defined in: packages/types/src/index.ts:460
mention_roles?
Section titled “mention_roles?”
optionalmention_roles?:string[]
Defined in: packages/types/src/index.ts:462
mentions?
Section titled “mentions?”
optionalmentions?:UserData[]
Defined in: packages/types/src/index.ts:461
message_reference?
Section titled “message_reference?”
optionalmessage_reference?:APIMessageReference
Defined in: packages/types/src/index.ts:474
message_snapshots?
Section titled “message_snapshots?”
optionalmessage_snapshots?:APIMessageSnapshot[]
Defined in: packages/types/src/index.ts:487
Forwarded messages: a partial copy of the original (content, embeds, attachments, …).
nonce?
Section titled “nonce?”
optionalnonce?:string|number|null
Defined in: packages/types/src/index.ts:467
pinned?
Section titled “pinned?”
optionalpinned?:boolean
Defined in: packages/types/src/index.ts:468
optionalpoll?:APIPoll
Defined in: packages/types/src/index.ts:485
position?
Section titled “position?”
optionalposition?:number
Defined in: packages/types/src/index.ts:482
purchase_notification?
Section titled “purchase_notification?”
optionalpurchase_notification?:Record<string,unknown>
Defined in: packages/types/src/index.ts:484
reactions?
Section titled “reactions?”
optionalreactions?:APIMessageReaction[]
Defined in: packages/types/src/index.ts:466
referenced_message?
Section titled “referenced_message?”
optionalreferenced_message?:APIMessage|null
Defined in: packages/types/src/index.ts:476
role_subscription_data?
Section titled “role_subscription_data?”
optionalrole_subscription_data?:Record<string,unknown>
Defined in: packages/types/src/index.ts:483
sticker_items?
Section titled “sticker_items?”
optionalsticker_items?:APIStickerItem[]
Defined in: packages/types/src/index.ts:480
stickers?
Section titled “stickers?”
optionalstickers?:APISticker[]
Defined in: packages/types/src/index.ts:481
thread?
Section titled “thread?”
optionalthread?:Record<string,unknown>
Defined in: packages/types/src/index.ts:478
timestamp?
Section titled “timestamp?”
optionaltimestamp?:string
Defined in: packages/types/src/index.ts:457
optionaltts?:boolean
Defined in: packages/types/src/index.ts:459
optionaltype?:number
Defined in: packages/types/src/index.ts:470
webhook_id?
Section titled “webhook_id?”
optionalwebhook_id?:string
Defined in: packages/types/src/index.ts:469