$attachment

Adds a attachment to the bot's response.

Usage

$attachment[URL;name.extension]

This function has two params.

ParamDescriptionTypeRequired

URL

The URL of this attachment.

String

Yes

name.extension

The name and extension of this attachment.

String

No

The 'URL' must end with a extension, else it is sent as a unpreviewable file.

Example

bot.commands.add({
    type: "basicCommand",
    name: "attachment",
    code: `$attachment[https://imgur.com/eZfedQF.png;image.png]`
})

Last updated