Difference between revisions of "Bot Playground/Commands/regionRestart"
From SmartBots Developers Docs
(Created page with "{{DISPLAYTITLE:{{SUBPAGENAME}}}} <onlyinclude>Queries to restart current region of the bot</onlyinclude> <syntaxhighlight lang="javascript"> Bot.regionRestart(delay); </synta...") |
|||
| Line 10: | Line 10: | ||
{{API Variable Group|Input}} | {{API Variable Group|Input}} | ||
| − | {{API Variable| | + | {{API Variable|delay|yes}} optional delay before restart, seconds. Default 120, minimum 30, maximum 240. |
| − | + | ||
{{API Variable Group|Output}} | {{API Variable Group|Output}} | ||
{{API Return promise}} | {{API Return promise}} | ||
| Line 17: | Line 16: | ||
{{API Variables Table End}} | {{API Variables Table End}} | ||
| − | == | + | == Permissions == |
| − | + | The bot has to be an Estate Manager of the current region. | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
{{NavMenu}} | {{NavMenu}} | ||
__NOTOC__ | __NOTOC__ | ||
Revision as of 17:32, 6 October 2022
Queries to restart current region of the bot
Bot.regionRestart(delay);
Reference
This command accepts the following parameters:
| Variable | Required | Description
| |
|---|---|---|---|
| Input: | |||
| delay | yes | optional delay before restart, seconds. Default 120, minimum 30, maximum 240. | |
| 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.