$get

Fetches a temporary variable's current value.

Usage

$get[variableName]

This function has one param.

ParamDescriptionTypeRequired

variableName

The variable to get the value for.

String

Yes

Example

bot.commands.add({
  type: "basicCommand",
  name: "example",
  code: `$let[msgid;$channelSendMessage[$channelID;Hello World!;yes]]
$setTimeout[5s;$editMessage[$channelID;$get[msgid];Hi Planet!]]`
})

Last updated