Skip to content

DiscordButton

Extends

  • LitElement

Constructors

new DiscordButton()

new DiscordButton(): DiscordButton

Returns

DiscordButton

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


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