offerFriendship
From SmartBots Developers Docs
Bot PlaygroundCommands
Revision as of 18:50, 3 July 2016 by Phil (Talk | contribs) (Created page with "{{DISPLAYTITLE:{{SUBPAGENAME}}}} <onlyinclude>Offers friendship to a resident.</onlyinclude> <syntaxhighlight lang="javascript"> Bot.offerFriendship(avatar, message); </synta...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Offers friendship to a resident.
Bot.offerFriendship(avatar, message);
Reference
This command accepts the following parameters:
Variable | Required | Description
| |
---|---|---|---|
offerFriendship: | |||
avatar | yes | the UUID of the resident | |
message | optional message to send | ||
Output: | |||
Function returns a Promise with the following data: | |||
success | bool | true if command completed successfully | |
error | string | error string if command has failed |
- offerFriendship