Difference between revisions of "AdminBot for LSL/Commands/SB ADJUST GROUP ROLE"
From SmartBots Developers Docs
(Created page with "{{DISPLAYTITLE: SB_ADJUST_GROUP_ROLE}} <onlyinclude>Adds or removes the group role to the group member .</onlyinclude> {{AdminBot Variables Table|command=SB_ADJUST_GROUP_ROLE...") |
m (Gg moved page AdminBot for Groups/Commands/SB ADJUST GROUP ROLE to AdminBot for LSL/Commands/SB ADJUST GROUP ROLE) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
{{AdminBot Required Vars|SB_INVITE_SEND}} | {{AdminBot Required Vars|SB_INVITE_SEND}} | ||
− | {{AdminBot Variable|str|yes}} an action to perform and role name. | + | {{AdminBot Variable|str|yes}} an action to perform and the role name. |
* An action can be either ''assign'' or ''remove''.<br> | * An action can be either ''assign'' or ''remove''.<br> | ||
Line 19: | Line 19: | ||
== Comments == | == Comments == | ||
+ | |||
+ | There are some requirements to the bot's abilities: | ||
* To assign members to the role: | * To assign members to the role: | ||
*# bot has to be in this role | *# bot has to be in this role | ||
− | *# bot has to have | + | *# bot has to have an "Assign Members to Assigner's Roles" group ability |
* To remove members from a role: | * To remove members from a role: | ||
− | *# bot has to have a "Remove members from Roles" | + | *# bot has to have a "Remove members from Roles" group ability |
+ | |||
+ | Edit group profile to assign these abilities to the bot: | ||
+ | [[Image:Group abilities for roles.png|center|link=]] | ||
== Examples == | == Examples == |
Latest revision as of 13:11, 12 May 2017
Adds or removes the group role to the group member .
// Command usage:
llMessageLinked(LINK_SET, SB_ADJUST_GROUP_ROLE, string str, key id);
API parameters
llMessageLinked function accepts str and id parameters. Their meaning for SB_ADJUST_GROUP_ROLE is explained below:
Variable | Required | Description.
| |
---|---|---|---|
str | yes | an action to perform and the role name.
Examples: | |
id | yes | avatar UUID |
Comments
There are some requirements to the bot's abilities:
- To assign members to the role:
- bot has to be in this role
- bot has to have an "Assign Members to Assigner's Roles" group ability
- To remove members from a role:
- bot has to have a "Remove members from Roles" group ability
Edit group profile to assign these abilities to the bot:
Examples
Assign member to the role:
llMessageLinked(LINK_SET, SB_ADJUST_GROUP_ROLE, "assign Officers", "042536ca-dc19-45ef-bd3c-2f3c829d4e56");
Remove member from the role:
llMessageLinked(LINK_SET, SB_ADJUST_GROUP_ROLE, "remove Active tenants", "042536ca-dc19-45ef-bd3c-2f3c829d4e56");