Skip to content

DiscordFileAttachment

Extends

  • LitElement

Implements

Constructors

new DiscordFileAttachment()

new DiscordFileAttachment(): DiscordFileAttachment

Returns

DiscordFileAttachment

Inherited from

LitElement.constructor

Accessors

bytes

The size of the file in bytes

Remarks

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

Example

1024

bytesUnit

The unit of the file in a human-readable format

Example

'KB'

href

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

Example

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

lightTheme

Implementation of

LightTheme.lightTheme


name

The name of the file

Example

'example.txt'

rel

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


target

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


type

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