Skip to content

DiscordMessage

Extends

  • LitElement

Implements

Constructors

new DiscordMessage()

new DiscordMessage(): DiscordMessage

Returns

DiscordMessage

Inherited from

LitElement.constructor

Accessors

author

The message author’s username.

Default Value

'User'

avatar

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


bot

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


clanIcon

The clan’s tag icon URL.


clanTag

The name of the clan you are part of


compactMode


dismissMessageClicked


edited

Whether the message has been edited or not.


ephemeral

Whether to make this message ephemeral.


hasThread


highlight

Whether to highlight this message.


lightTheme

Implementation of

LightTheme.lightTheme


messageBodyOnly


noBackground


officialApp

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


op

Whether the author is the original poster.


profile

The id of the profile data to use.


roleColor

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


roleIcon

The message author’s role icon URL.


roleName

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


server

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


timestamp

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.


twentyFour

Whether to use 24-hour format for the timestamp.


verified

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