Skip to content

$forEachMember

$forEachMember will execute awaited commands for user within the current guild.

Usage

$forEachMember[time;awaitData;...awaitedCmds;endCmd?]

Parameters

FieldTypeDescriptionRequired
timestringHow long it takes between each member to execute the next.true
awaitDataobjectAwaited Data.true
…awaitedCmdsstringAwaited Commands to execute.true
endCmd?stringAwaited command to execute when the loop ends.false

Example(s)

1
client.command({
2
name: "awaitData",
3
code: `
4
$forEachMember[1s;{ "members": "$membersCount" };returnMembers;]
5
`
6
});
7
8
client.awaitedCommand({
9
name: "returnMembers",
10
code: `
11
$log[ $authorID , is one out of $awaitData[members] members ]
12
`
13
});