DiscordMessages
Extends
Section titled “Extends”LitElement
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new DiscordMessages():
DiscordMessages
Returns
Section titled “Returns”DiscordMessages
Inherited from
Section titled “Inherited from”LitElement.constructor
channelName
Section titled “channelName”The name of the channel, this will be displayed above the message and only applies if DiscordMessages.channelType is set.
channelType
Section titled “channelType”The type of channel this should be, this will be displayed above the message and only applies if DiscordMessages.channelName is set.
Valid values are: text
, forum
, locked
, thread
, and voice
.
compactMode
Section titled “compactMode”Whether to use compact mode or not.
lightTheme
Section titled “lightTheme”Whether to use light theme or not.
Implementation of
Section titled “Implementation of”noBackground
Section titled “noBackground”Whether to exclude the background or not.
lifecycle
Section titled “lifecycle”connectedCallback()
Section titled “connectedCallback()”connectedCallback():
void
Invoked when the component is added to the document’s DOM.
In connectedCallback()
you should setup tasks that should only occur when
the element is connected to the document. The most common of these is
adding event listeners to nodes external to the element, like a keydown
event handler added to the window.
connectedCallback() { super.connectedCallback(); addEventListener('keydown', this._handleKeydown);}
Typically, anything done in connectedCallback()
should be undone when the
element is disconnected, in disconnectedCallback()
.
Returns
Section titled “Returns”void
Overrides
Section titled “Overrides”LitElement.connectedCallback