DiscordChatMessage
Defined in: src/events/DiscordChatMessage.ts:5
The event received when a player posts a message in Discord.
Extends
Section titled “Extends”Properties
Section titled “Properties”discordId
Section titled “discordId”discordId:
string
Defined in: src/events/DiscordChatMessage.ts:16
The Discord snowflake ID of this message.
discordUser
Section titled “discordUser”discordUser:
DiscordUser
Defined in: src/events/DiscordChatMessage.ts:19
The Discord user who sent the message.
edited
Section titled “edited”edited:
boolean
Defined in: src/events/DiscordChatMessage.ts:22
true
if this event represents an edit to the original message.
event:
string
Defined in: src/events/BaseEvent.ts:5
Inherited from
Section titled “Inherited from”id:
number
Defined in: src/events/BaseEvent.ts:4
Inherited from
Section titled “Inherited from”ok:
boolean
Defined in: src/packets/Data.ts:2
Inherited from
Section titled “Inherited from”rawText
Section titled “rawText”rawText:
string
Defined in: src/events/DiscordChatMessage.ts:10
The message contents, with its original Markdown formatting codes.
renderedText
Section titled “renderedText”renderedText:
RenderedTextObject
Defined in: src/events/DiscordChatMessage.ts:13
The message contents, serialised with formatting as Minecraft JSON text.
text:
string
Defined in: src/events/DiscordChatMessage.ts:7
The message contents, without Markdown formatting codes.
time:
Date
Defined in: src/events/BaseEvent.ts:6
Inherited from
Section titled “Inherited from”type:
string
Defined in: src/packets/Data.ts:3