$forEachGuild
$forEachGuild
will execute given awaited commands in every guild.
Usage
$forEachGuild[time;awaitData;...awaitedCmds;endCmd]
Parameters
Field | Type | Description | Required |
---|---|---|---|
time | string | How long it takes between each guild to execute the next. | true |
awaitData | object | Awaited Data. | true |
…awaitedCmds | string | Awaited Commands to execute. | true |
endCmd? | string | Awaited Command to execute when the loop ends. | false |
Example(s)
This will change the variable value of each guild to “test”:
1client.command({2 name: "forEachGuild",3 code: `4 $forEachGuild[2s;{"value": "test"};awaitedCommand;]5 `6});7
8client.awaitedCommand({9 name: "awaitedCommand",10 code: `11 $setGuildVar[varname;$awaitData[value];$guildID]12 `13});