Difference between revisions of "Bot Playground/Commands/regionRestartCancel"
From SmartBots Developers Docs
(Created page with "{{DISPLAYTITLE:{{SUBPAGENAME}}}} <onlyinclude>Cancels pending restart of current region</onlyinclude> <syntaxhighlight lang="javascript"> Bot.regionRestart(delay); </syntaxhi...") |
|||
Line 19: | Line 19: | ||
The bot has to be an Estate Manager of the current region. | The bot has to be an Estate Manager of the current region. | ||
+ | |||
+ | == Examples == | ||
+ | |||
+ | See a [[Bot_Playground/Examples/Region_restart|complex region restart script]] in Examples. | ||
+ | |||
{{NavMenu}} | {{NavMenu}} | ||
__NOTOC__ | __NOTOC__ |
Latest revision as of 18:07, 6 October 2022
Cancels pending restart of current region
Bot.regionRestart(delay);
Reference
This command accepts the following parameters:
Variable | Required | Description
| |
---|---|---|---|
Input: | |||
Output: | |||
Function returns a Promise with the following data: | |||
success | bool | true if command completed successfully | |
error | string | error string if command has failed |
Permissions
The bot has to be an Estate Manager of the current region.
Examples
See a complex region restart script in Examples.