Skip to content

$attachment

$attachment will create an attachment.

Usage

$attachment[attachment;name;type?;encoding?]

Parameters

FieldTypeDescriptionRequired
attachmentstringContent of the attachment, preferably a URL.true
namestringAttachment name.true
type?stringAttachment type. 1. URL (default)false
encoding?stringEncoding type. (e.g., “utf-8”, “base64”)false

Example(s)

This will create an attachment:

1
client.command({
2
name: "attachment",
3
code: `
4
$attachment[https://cdn.discordapp.com/emojis/1063432790697328710.webp?size=96&quality=lossless;boost-icon.png;URL]
5
`
6
});