$timeoutData
$timeoutData
holds data for $setTimeout data parameters, this will be empty if used outside timeoutCommand codes.
Usage
$timeoutData[option]
Parameters
Field | Type | Description | Required |
---|---|---|---|
option | string | Timeout Data option name. | true |
Example(s)
This will send “Hello!” after 10 seconds in the command execution channel:
1client.command({2 name: "setTimeout",3 code: `4 $setTimeout[timeoutCommand;10s;{"channelID": "$channelID", "authorID": "$authorID"};false]5 `6});7
8client.timeoutCommand({9 name: "timeoutCommand",10 code: `11 $channelSendMessage[$timeoutData[channelID];Hello, <@$timeoutData[authorID]>!]12 `13});