$let
Declares and creates a temporary variable.
Usage
$let[variableName;variableValue]
This function has two params.
Param
Description
Type
Required
variableName
The name of this variable.
String
Yes
variableValue
The value that this variable holds.
String
Yes
Example
bot.commands.add({
type: "basicCommand",
name: "example",
code: `$let[user;$mentioned[1]]
$description[1;<@$get[user]>]
$addField[1;ID;$get[user]]
$addField[1;Roles;$userRoles[$guildID;$get[user];yes;mention]]
$addField[1;Permissions;$userPerms[$guildID;$get[user];, ;yes]]`
})
Related Functions
Last updated
Was this helpful?