Skip to content

$timeoutData

$timeoutData holds data for $setTimeout data parameters, this will be empty if used outside timeoutCommand codes.

Usage

$timeoutData[option]

Parameters

FieldTypeDescriptionRequired
optionstringTimeout Data option name.true

Example(s)

This will send “Hello!” after 10 seconds in the command execution channel:

1
client.command({
2
name: "setTimeout",
3
code: `
4
$setTimeout[timeoutCommand;10s;{"channelID": "$channelID", "authorID": "$authorID"};false]
5
`
6
});
7
8
client.timeoutCommand({
9
name: "timeoutCommand",
10
code: `
11
$channelSendMessage[$timeoutData[channelID];Hello, <@$timeoutData[authorID]>!]
12
`
13
});