Sends a group invitation to a specific resident.
Bot.inviteGroup(avatar, groupuuid, roleuuid, check_membership);
This command accepts the following parameters:
|avatar||yes||The UUID of the resident|
|groupuuid||yes||The UUID of the group|
|roleuuid||yes||The UUID of the group role (NULL_KEY for "Everyone")|
|check_membership||no||set to 1 if you want to ignore existing group members (see "Comments" below)|
|Function returns a Promise with the following data:|
|success||bool||true if command completed successfully|
|error||string||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.