Skip to content

Class Message

🏭 Constructors

constructor

ts
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

ts
attachments: APIAttachment[]

any attached files

Defined in: packages/discord-rpc/structures/Message.ts:60

author

ts
author: User

the author of this message

Defined in: packages/discord-rpc/structures/Message.ts:64

author_color

ts
author_color: string

Defined in: packages/discord-rpc/structures/Message.ts:28

blocked

ts
blocked: boolean

if the message's author is blocked

Defined in: packages/discord-rpc/structures/Message.ts:14

bot

ts
bot: boolean

if the message is sent by a bot

Defined in: packages/discord-rpc/structures/Message.ts:18

client

ts
client: Client

the client instance Inherited from: Base.client

Defined in: packages/discord-rpc/structures/Base.ts:7

content

ts
content: string

contents of the message

Defined in: packages/discord-rpc/structures/Message.ts:22

content_parsed

ts
content_parsed: any[]

Defined in: packages/discord-rpc/structures/Message.ts:23

edited_timestamp

ts
edited_timestamp: null | string

when this message was edited (or null if never)

Defined in: packages/discord-rpc/structures/Message.ts:32

embeds

ts
embeds: APIEmbed[]

any embedded content

Defined in: packages/discord-rpc/structures/Message.ts:56

id

ts
id: string

id of the message

Defined in: packages/discord-rpc/structures/Message.ts:10

mention_everyone

ts
mention_everyone: boolean

whether this message mentions everyone

Defined in: packages/discord-rpc/structures/Message.ts:48

mention_roles

ts
mention_roles: string[]

roles specifically mentioned in this message

Defined in: packages/discord-rpc/structures/Message.ts:52

mentions

ts
mentions: User[]

users specifically mentioned in the message

Defined in: packages/discord-rpc/structures/Message.ts:44

nick

ts
nick: string

author's server nickname

Defined in: packages/discord-rpc/structures/Message.ts:27

pinned

ts
pinned: boolean

whether this message is pinned

Defined in: packages/discord-rpc/structures/Message.ts:68

timestamp

ts
timestamp: string

when this message was sent

Defined in: packages/discord-rpc/structures/Message.ts:36

tts

ts
tts: boolean

whether this was a TTS message

Defined in: packages/discord-rpc/structures/Message.ts:40

type

ts
type: MessageType

type of message

Defined in: packages/discord-rpc/structures/Message.ts:72