T

AssetRegistration

An image to register with Discord's asset registry, so <Image source={id}> and Discord's icon props draw it.

type AssetRegistration = { … }

Members

heightnumber

Height in points.

namestring

The asset's name; a plugin's names are kept apart from every other plugin's.

path?string

The image file at scale 1, as an absolute path such as ${fs.documentsPath}/MyPlugin/star.png.

scales?Record<number, string>

The image at other pixel densities, as URIs or absolute paths by scale, such as { 2: '/…/[email protected]' }.

typestring

The file type, such as png.

uri?string

The image's URI at scale 1, such as a data: or file:// URI.

widthnumber

Width in points.