Skip to content

DiscordMessage

  • LitElement

new DiscordMessage(): DiscordMessage

DiscordMessage

LitElement.constructor

The message author’s username.

'User'

The message author’s avatar. Can be an avatar shortcut, relative path, or external link.


Whether the message author is a bot or not. Only works if server and officialApp is false or undefined.


The clan’s tag icon URL.


The name of the clan you are part of




Whether the message has been edited or not.


Whether to make this message ephemeral.



Whether to highlight this message.


LightTheme.lightTheme




Whether the message author is official app. Only works if bot and server is falns


Whether the author is the original poster.


The id of the profile data to use.


The message author’s primary role color. Can be any CSS color value.


The message author’s role icon URL.


The name of the role to use as alternative image text.


Whether the message author is a server crosspost webhook or not. Only works if bot and officialApp is false or undefined.


The timestamp to use for the message date.

if DiscordMessage.messageBodyOnly is true, this will be shown in the gutter before the message on hover.


Whether to use 24-hour format for the timestamp.


Whether the bot is verified or not. Only works if bot is true