DiscordImageAttachment
Extends
Section titled “Extends”LitElement
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new DiscordImageAttachment():
DiscordImageAttachment
Returns
Section titled “Returns”DiscordImageAttachment
Inherited from
Section titled “Inherited from”LitElement.constructor
Accessors
Section titled “Accessors”The alt text to show in case the image was unable to load
Default Value
Section titled “Default Value”'discord attachment'
customImageElement
Section titled “customImageElement”Indicates that you intend to use a custom image element, useful if you want to use something like `next/image`
Once this property is set, use the child element (default slot) to insert the code for the desired image component
Remarks
Section titled “Remarks”Setting this will disable the `url`, and `alt` properties.
height
Section titled “height”The height of the image in pixels
The URL for the image attachment
Remarks
Section titled “Remarks”Should be a valid image URL, i.e. matching the regex /\.(bmp|jpe?g|png|gif|webp|tiff)$/i
The width of the image in pixels
Methods
Section titled “Methods”componentWillRender()
Section titled “componentWillRender()”componentWillRender():
void
Returns
Section titled “Returns”void