Skip to content

$djsEval

$djsEval will execute given javascript code.

Usage

$djsEval[code;returnCode?]

Parameters

FieldTypeDescriptionRequired
codestringJavascript code to execute.true
returnCode?stringReturn code.
1. true
2. false (default)
false

Example(s)

This will return your user ID:

1
client.command({
2
name: "djsEval",
3
code: `
4
$djsEval[msg.author.id;true]
5
`
6
});