DiscordReply
Extends
Section titled “Extends”LitElement
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new DiscordReply():
DiscordReply
Returns
Section titled “Returns”DiscordReply
Inherited from
Section titled “Inherited from”LitElement.constructor
Accessors
Section titled “Accessors”attachment
Section titled “attachment”Whether the referenced message contains attachments.
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 icon of the author, which comes from the enabled clan tag
clanTag
Section titled “clanTag”The clan name of the author, which comes from the enabled clan tag
command
Section titled “command”Whether the referenced message is from a response of a slash command.
compactMode
Section titled “compactMode”Whether to use compact mode or not.
deleted
Section titled “deleted”Whether this reply is a deleted message.
When set to true, any content inside the tags is ignored as no slot
is rendered.
The message will always be "Original message was deleted"
.
Furthermore, the following properties are ignored:
- profile
- author
- avatar
- bot
- server
- op
- verified
- edited
- roleColor
- command
- attachment
- mentions
- clanIcon
- clanTag
edited
Section titled “edited”Whether the message has been edited or not.
lightTheme
Section titled “lightTheme”Implementation of
Section titled “Implementation of”mentions
Section titled “mentions”Whether this reply pings the original message sender, prepending an ”@” on the author’s username.
officialApp
Section titled “officialApp”Whether the message author is a server crosspost webhook or not.
Only works if bot
and server
is false
or undefined
.
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.
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
.
verified
Section titled “verified”Whether the bot is verified or not.
Only works if bot
is true