DiscordFileAttachment
Extends
Section titled “Extends”LitElement
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new DiscordFileAttachment():
DiscordFileAttachment
Returns
Section titled “Returns”DiscordFileAttachment
Inherited from
Section titled “Inherited from”LitElement.constructor
Accessors
Section titled “Accessors”The size of the file in bytes
Remarks
Section titled “Remarks”The unit is not automatically calculated, you should provide it manually through `bytesUnit`
Example
Section titled “Example”1024
bytesUnit
Section titled “bytesUnit”The unit of the file in a human-readable format
Example
Section titled “Example”'KB'
The URL to the file, this is passed to <discord-link>
Example
Section titled “Example”'https://example.com/example.txt'
lightTheme
Section titled “lightTheme”Implementation of
Section titled “Implementation of”The name of the file
Example
Section titled “Example”'example.txt'
The <a>
tag `rel`,
this is passed to <discord-link>
target
Section titled “target”The <a>
tag `target`,
this is passed to <discord-link>
The <a>
tag `type`,
this is passed to <discord-link>