inviteGroup
Sends a group invitation to a specific resident.
Bot.inviteGroup(avatar, groupuuid, roleuuid, check_membership);Input
Variable | Required | Description |
|---|---|---|
| yes | The UUID of the resident |
| yes | The UUID of the group |
| yes | The UUID of the group role ( |
| optional | Set to |
Output
Function returns a Promise with the following data:
Variable | Type | Description |
|---|---|---|
| bool | True if command completed successfully |
| string | Error string if command has failed |
Comments
Ignoring existing group members
It is possible to ignore existing group members and not invite them again by setting check_membership to 1.
Important: The bot reloads the list of group members every 10 minutes.
If a resident (1) leaves the group and then (2) tries to rejoin immediately, the bot may still think they are a member — in this case, the invitation will be discarded.