$djsEval
Evals discord.js code.
Usage
$djsEval[showOutput;code]This function has two params.
Param
Description
Type
Required
showOutput
Whether to return the output of this code.
Boolean
Yes
Examples
Sending a Message:
bot.commands.add({
type: "basicCommand",
name: "example",
code: `$djsEval[yes;
let result = "Hello World!"
result]` //Returns Hell
})OR
bot.commands.add({
type: "basicCommand",
name: "example",
code: `$djsEval[no;d.data.message.channel.send("Hello World")]`
})Returning the Bot's Ping:
Getting Info About a User:
Getting Info About a Message:
Last updated
Was this helpful?