sendNotice
From SmartBots Developers Docs
Revision as of 21:14, 2 July 2016 by Phil (Talk | contribs) (Created page with "{{DISPLAYTITLE:{{SUBPAGENAME}}}} <onlyinclude>Sends a notice to the group.</onlyinclude> <syntaxhighlight lang="javascript"> Bot.sendNotice(groupuuid, subject, text, attachme...")
Sends a notice to the group.
Bot.sendNotice(groupuuid, subject, text, attachment);
Reference
This command accepts the following parameters:
| Variable | Required | Description
| |
|---|---|---|---|
| Input: | |||
| groupuuid | yes | the UUID of the group | |
| subject | yes | the subject of the notice (can't contain international characters) | |
| text | yes | the text of the notice (can contain international characters) | |
| attachment | optional | inventory UUID of the attachment (see below) | |
| Output: | |||
| Function returns a Promise with the following data: | |||
| success | bool | true if command completed successfully | |
| error | string | error string if command has failed | |