Sends a group invitation to a specific resident.
Bot.inviteGroup(avatar, groupuuid, roleuuid, check_membership);
This command accepts the following parameters:
|The UUID of the resident
|The UUID of the group
|The UUID of the group role (NULL_KEY for "Everyone")
|set to 1 if you want to ignore existing group members (see "Comments" below)
|Function returns a Promise with the following data:
|true if command completed successfully
|error string if command has failed
Ignoring existing group members
It is possible to ignore existing group members and do not invite them: set check_membership parameter to 1.
Important notice: bot reloads the list of the group members every 10 minutes. Thus, if resident (1) exits from the group and then (2) tries to join back immediately, bot will think that resident still in the group: the invitation will be discarded.