$delete

Deletes a temporary variable that was set with $let.

Usage

$delete[variableName]

This function has one param.

ParamsDescriptionTypeRequired

variableName

The temporary variable to delete.

String

Yes

Example

bot.commands.add({
  type: "basicCommand",
  name: "example",
  code: `$let[text;Hello!]
$get[text]
$delete[text]`
})

Last updated