21 August 2016

21 May 2016

21 August 2015

The batchinvite command can be used to invite avatars en-bloc to a group. Compared to the single operation invite, batchinvite is much faster when inviting a larger number of avatars and the command can be used, for example, to perform group member transfers.

CommandRequired ParametersRequired Corrade PermissionsRequired Group AbilitiesExample
batchinvitegroup, password, avatarsgroup* For inviting to the default Everyone role: Membership→Invite People to this Group
* For inviting to Corrade's role in the group: Roles→Assign Members to Assigner's Roles
* For inviting to any role in the group: Roles→Assign Members to Any Role
* For inviting banned agents by unbanning them: Membership→Manage ban list
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            "command", "batchinvite",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            // Soft-unban the agents.
            "soft", "True",
            "avatars", wasURLEscape(
                wasListToCSV(
                    [
                        "Philip Linden",
                        // invite by UUID
                        "ff19c6b5-4824-4de3-995a-d739d588cf18",
                        "Ectogram Resident"
                    ]
                )
            ),
            "callback", wasURLEscape(URL)
        ]
    )
);

The command will return a list of avatars that could not be invited to the group.

Optional ParametersPossible ValueDescription
roleA role name or UUID.Invite to specified role.
targetA group name or UUID.The group to act upon. If this parameter is omitted, then the command acts upon the configured group passed to the group parameter.
softTrue or FalseIn case an avatar is invited but is also present on the soft-ban list then Corrade will refuse to invite the avatar. By setting soft to True, Corrade will soft-unban the avatar and then invite.

Notes