$forEachUser
$forEachUser
will execute awaited commands for user across all guilds.
Usage
$forEachUser[time;awaitData;...awaitedCmds;endCmd?]
Parameters
Field | Type | Description | Required |
---|---|---|---|
time | string | How long it takes between each user to execute the next one. | true |
awaitData | object | Awaited Data. | true |
…awaitedCmds | string | Awaited Commands to execute. | true |
endCmd? | string | Awaited Command to execute when loop ends. | false |
Example(s)
This will log every (cached) user in your console:
1client.command({2 name: "awaitData",3 code: `4 $forEachUser[1;{};returnUsers;]5 `6});7
8client.awaitedCommand({9 name: "returnUsers",10 code: `11 $log[ $authorID ]12 `13});