Skip to content

$broadcastEval

$broadcastEval will execute a code in all guilds of all shards. (requires sharding)

Usage

$broadcastEval[function]

Parameters

FieldTypeDescriptionRequired
functionstringFunction or code that will be executed.true

Example(s)

Requires Sharding - Review the Sharding Guide if you need explanation

This will return the amount of servers your bot is in:

1
client.command({
2
name: "broadcastEval",
3
code: `
4
$broadcastEval[$guildCount]
5
`
6
});