Class Message
🏭 Constructors
constructor
new Message(client: Client, props: Record<string, any>): Message
Parameters
- 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: User
the author of this message
Defined in: packages/discord-rpc/structures/Message.ts:64
author_color
author_color: string
Defined in: packages/discord-rpc/structures/Message.ts:28
blocked
blocked: boolean
if the message's author is blocked
Defined in: packages/discord-rpc/structures/Message.ts:14
bot
bot: boolean
if the message is sent by a bot
Defined in: packages/discord-rpc/structures/Message.ts:18
client
client: Client
the client instance Inherited from: Base.client
Defined in: packages/discord-rpc/structures/Base.ts:7
content
content: string
contents 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 | string
when 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: string
id of the message
Defined in: packages/discord-rpc/structures/Message.ts:10
mention_everyone
mention_everyone: boolean
whether 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: string
author's server nickname
Defined in: packages/discord-rpc/structures/Message.ts:27
pinned
pinned: boolean
whether this message is pinned
Defined in: packages/discord-rpc/structures/Message.ts:68
timestamp
timestamp: string
when this message was sent
Defined in: packages/discord-rpc/structures/Message.ts:36
tts
tts: boolean
whether this was a TTS message
Defined in: packages/discord-rpc/structures/Message.ts:40
type
type: MessageType
Defined in: packages/discord-rpc/structures/Message.ts:72