Difference between revisions of "Template:API Return promise"
From SmartBots Developers Docs
(Created page with "{{API Variable|result}} Promise") |
|||
Line 1: | Line 1: | ||
− | {{API Variable| | + | |- class="row-a {{{3}}}" |
+ | | width="10" | | ||
+ | | width="180" colspan="3" | Function returns a [[Bot Playground/Callbacks and return values|Promise]] with the following data: | ||
+ | |||
+ | {{API Variable|success|bool}} ''true'' if command completed successfully | ||
+ | {{API Variable|error|string}} error string if command has failed |
Latest revision as of 06:59, 29 June 2016
|- class="row-a {{{3}}}" | width="10" | | width="180" colspan="3" | Function returns a Promise with the following data:
|- class="row-a {{{3}}}" | width="10" | | width="180" | success | width="60" | bool | true if command completed successfully |- class="row-a {{{3}}}" | width="10" | | width="180" | error | width="60" | string | error string if command has failed