$djsEval
$djsEval
will execute given javascript code.
Usage
$djsEval[code;returnCode?]
Parameters
Field | Type | Description | Required |
---|---|---|---|
code | string | Javascript code to execute. | true |
returnCode? | string | Return code. 1. true 2. false (default) | false |
Example(s)
This will return your user ID:
1client.command({2 name: "djsEval",3 code: `4 $djsEval[msg.author.id;true]5 `6});