v5.0.0
$forEachGuild
Loops for every guild the bot is in executing an awaitedCommand
This function creates a loop over every server the bot is in

Fields

This function has 1 required field
  1. 1.
    Awaited Command (Required)
  2. 2.
    Awaited Command 2 (Optional)
  3. 3.
    Etc
Raw Usage: $forEachGuild[awaitedCommand1;awaitedCommand2;...]

Options

  • Awaited Command(s) - The awaited command(s) we're executing

Usage

1
bot.command({
2
name: "forEachGuild",
3
code: "$forEachGuild[loop2]"
4
})
5
​
6
bot.awaitedCommand({
7
name: "loop2",
8
code: `$setServerVar[hello;bye]` //Every servers value for 'hello' will be 'bye'
9
})
Copied!
Last modified 1mo ago
Copy link
Edit on GitHub