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
height
numberHeight in points.
name
stringThe asset's name; a plugin's names are kept apart from every other plugin's.
path?
stringThe 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]' }.
type
stringThe file type, such as png.
uri?
stringThe image's URI at scale 1, such as a data: or file:// URI.
width
numberWidth in points.