setGroupRole
From SmartBots Developers Docs
Revision as of 21:17, 2 July 2016 by Phil (Talk | contribs) (Created page with "{{DISPLAYTITLE:{{SUBPAGENAME}}}} <onlyinclude>Puts member of a group in a specific role.</onlyinclude> <syntaxhighlight lang="javascript"> Bot.setGroupRole(location); </synta...")
Puts member of a group in a specific role.
Bot.setGroupRole(location);
Reference
This command accepts the following parameters:
Variable | Required | Description
| |
---|---|---|---|
Input: | |||
groupuuid | yes | The UUID of the group | |
roleuuid | yes | The UUID of the group role. "Everyone" role is 00000000-0000-0000-0000-000000000000 | |
member | yes | The UUID of the avatar which should be moved to the specific 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 |