DiscordMessage
Extends
Section titled “Extends”LitElement
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new DiscordMessage():
DiscordMessage
Returns
Section titled “Returns”DiscordMessage
Inherited from
Section titled “Inherited from”LitElement.constructor
Accessors
Section titled “Accessors”author
Section titled “author”The message author’s username.
Default Value
Section titled “Default Value”'User'
avatar
Section titled “avatar”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
.
clanIcon
Section titled “clanIcon”The clan’s tag icon URL.
clanTag
Section titled “clanTag”The name of the clan you are part of
compactMode
Section titled “compactMode”dismissMessageClicked
Section titled “dismissMessageClicked”edited
Section titled “edited”Whether the message has been edited or not.
ephemeral
Section titled “ephemeral”Whether to make this message ephemeral.
hasThread
Section titled “hasThread”highlight
Section titled “highlight”Whether to highlight this message.
lightTheme
Section titled “lightTheme”Implementation of
Section titled “Implementation of”messageBodyOnly
Section titled “messageBodyOnly”noBackground
Section titled “noBackground”officialApp
Section titled “officialApp”Whether the message author is official app.
Only works if bot
and server
is falns
Whether the author is the original poster.
profile
Section titled “profile”The id of the profile data to use.
roleColor
Section titled “roleColor”The message author’s primary role color. Can be any CSS color value.
roleIcon
Section titled “roleIcon”The message author’s role icon URL.
roleName
Section titled “roleName”The name of the role to use as alternative image text.
server
Section titled “server”Whether the message author is a server crosspost webhook or not.
Only works if bot
and officialApp
is false
or undefined
.
timestamp
Section titled “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
Section titled “twentyFour”Whether to use 24-hour format for the timestamp.
verified
Section titled “verified”Whether the bot is verified or not.
Only works if bot
is true