$attachment

Adds a attachment to the bot's response.

Usage

$attachment[URL;name.extension]

This function has two params.

Param
Description
Type
Required

URL

The URL of this attachment.

String

Yes

name.extension

The name and extension of this attachment.

String

No

Example

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

Last updated

Was this helpful?