offerFriendship
From SmartBots Developers Docs
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