Skip to content

$awaitData

$awaitData will return awaited data given in awaited commands.

Usage

$awaitData[name]

Parameters

FieldTypeDescriptionRequired
namestringAwaited Data Name.true

Example(s)

This will return the ID of every server member and log it in your console:

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
});