Skip to content

DiscordFileAttachment

  • LitElement

new DiscordFileAttachment(): DiscordFileAttachment

DiscordFileAttachment

LitElement.constructor

The size of the file in bytes

The unit is not automatically calculated, you should provide it manually through `bytesUnit`

1024

The unit of the file in a human-readable format

'KB'

The URL to the file, this is passed to <discord-link>

'https://example.com/example.txt'

LightTheme.lightTheme


The name of the file

'example.txt'

The <a> tag `rel`, this is passed to <discord-link>


The <a> tag `target`, this is passed to <discord-link>


The <a> tag `type`, this is passed to <discord-link>