Class Message
🏭 Constructors
constructor
Message(client: Client, props: Record<string, any>): MessageParameters
- client:
Client - props:
Record<string, any>
Return Type
Message
Defined in: packages/discord-rpc/structures/Message.ts:74
🏷️ Properties
attachments
attachments: APIAttachment[]any attached files
Defined in: packages/discord-rpc/structures/Message.ts:60
author
author: Userthe author of this message
Defined in: packages/discord-rpc/structures/Message.ts:64
author_color
author_color: stringDefined in: packages/discord-rpc/structures/Message.ts:28
blocked
blocked: booleanif the message's author is blocked
Defined in: packages/discord-rpc/structures/Message.ts:14
bot
bot: booleanif the message is sent by a bot
Defined in: packages/discord-rpc/structures/Message.ts:18
client
client: Clientthe client instance Inherited from: Base.client
Defined in: packages/discord-rpc/structures/Base.ts:7
content
content: stringcontents of the message
Defined in: packages/discord-rpc/structures/Message.ts:22
content_parsed
content_parsed: any[]Defined in: packages/discord-rpc/structures/Message.ts:23
edited_timestamp
edited_timestamp: null | stringwhen this message was edited (or null if never)
Defined in: packages/discord-rpc/structures/Message.ts:32
embeds
embeds: APIEmbed[]any embedded content
Defined in: packages/discord-rpc/structures/Message.ts:56
id
id: stringid of the message
Defined in: packages/discord-rpc/structures/Message.ts:10
mention_everyone
mention_everyone: booleanwhether this message mentions everyone
Defined in: packages/discord-rpc/structures/Message.ts:48
mention_roles
mention_roles: string[]roles specifically mentioned in this message
Defined in: packages/discord-rpc/structures/Message.ts:52
mentions
mentions: User[]users specifically mentioned in the message
Defined in: packages/discord-rpc/structures/Message.ts:44
nick
nick: stringauthor's server nickname
Defined in: packages/discord-rpc/structures/Message.ts:27
pinned
pinned: booleanwhether this message is pinned
Defined in: packages/discord-rpc/structures/Message.ts:68
timestamp
timestamp: stringwhen this message was sent
Defined in: packages/discord-rpc/structures/Message.ts:36
tts
tts: booleanwhether this was a TTS message
Defined in: packages/discord-rpc/structures/Message.ts:40
type
type: MessageTypeDefined in: packages/discord-rpc/structures/Message.ts:72