DiscordCommand
Extends
Section titled “Extends”LitElement
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new DiscordCommand():
DiscordCommand
Returns
Section titled “Returns”DiscordCommand
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.
command
Section titled “command”The name of the command invoked.
compactMode
Section titled “compactMode”Whether to use compact mode or not.
contextAttachmentReply
Section titled “contextAttachmentReply”Whether the referenced context message contains attachments.
contextCommandReply
Section titled “contextCommandReply”Whether the referenced context message is from a response of a slash command.
contextMessageDeleted
Section titled “contextMessageDeleted”If the referenced messaga has deleted
contextMessageReply
Section titled “contextMessageReply”The referenced message in message command
contextUserAvatar
Section titled “contextUserAvatar”The image of user mentioned in context menu
contextUserBot
Section titled “contextUserBot”If the message command user are bot
contextUserBotVerified
Section titled “contextUserBotVerified”If the user bot are verified
contextUserName
Section titled “contextUserName”The name of user mentioned in context menu
contextUserOfficialApplication
Section titled “contextUserOfficialApplication”If the context user is a application official of discord
contextUserProfile
Section titled “contextUserProfile”The id of the profile data to use.
contextUserRoleColor
Section titled “contextUserRoleColor”The role color of user mentioned in context menu
contextUserServer
Section titled “contextUserServer”If the context user is a server
lightTheme
Section titled “lightTheme”Implementation of
Section titled “Implementation of”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.
The type of command
Methods
Section titled “Methods”checkType()
Section titled “checkType()”checkType():
void
Returns
Section titled “Returns”void