revokeGroupRole
From SmartBots Developers Docs
Revision as of 20:52, 31 October 2016 by Gg (Talk | contribs) (Created page with "{{DISPLAYTITLE:{{SUBPAGENAME}}}} <onlyinclude>Revokes a specific role from a group member.</onlyinclude> <syntaxhighlight lang="javascript"> Bot.revokeGroupRole(avatar_uuid,...")
Revokes a specific role from a group member.
Bot.revokeGroupRole(avatar_uuid, group_uuid, role_uuid)
.then(function(result) {
if(result.success) { console.log("Role revoked"); }
});
Reference
This command accepts the following parameters:
| Variable | Required | Description
| |
|---|---|---|---|
| Input: | |||
| avatar_uuid | yes | The UUID of the avatar which should be removed from the role | |
| group_uuid | yes | The UUID of the group | |
| role_uuid | yes | The UUID of the group role. | |
| Output: | |||
| Function returns a Promise with the following data: | |||
| success | bool | true if command completed successfully | |
| error | string | error string if command has failed | |