DiscordButton
Extends
LitElement
Constructors
new DiscordButton()
new DiscordButton():
DiscordButton
Returns
Inherited from
LitElement.constructor
Accessors
disabled
Whether to show the button as disabled.
emoji
The emoji URL to use in the button.
emojiName
The name of the emoji used in the button.
modalId
An id
of a modal that should be opened when this button is clicked. This should match the modal-id
of a discord-modal
element.
Remarks
discord-modal
s use the HTML dialog element. and are opened through<ref>.showModal()
- If DiscordButton.url is set this will be ignored.
- If DiscordButton.disabled is set this will be ignored.
type
The type of button this is, this will change the color of the button.
Valid values: primary
, secondary
, success
, destructive
.
url
The URL for the button. Setting this will force the button type to be secondary
.
Methods
checkParentElement()
checkParentElement():
void
Returns
void
checkType()
checkType():
void
Returns
void