This repository was archived by the owner on Jul 3, 2021. It is now read-only.
-
Couldn't load subscription status.
- Fork 45
[actions] moderateSetRole
Thedark1337 edited this page Aug 31, 2016
·
2 revisions
Set a role to an user. The bot needs to have manager permission or higher.
The user's ID.
-
0orPlugAPI.ROOM_ROLE.NONE: None -
1orPlugAPI.ROOM_ROLE.RESIDENTDJ: Resident DJ -
2orPlugAPI.ROOM_ROLE.BOUNCER: Bouncer -
3orPlugAPI.ROOM_ROLE.MANAGER: Manager -
4orPlugAPI.ROOM_ROLE.COHOST: Co-Host -
5orPlugAPI.ROOM_ROLE.HOST: Host
Callback function to be called with data from server.
true if request queued; otherwise false
// Make normal user 'xxxxxx' Resident DJ
bot.moderateSetRole('xxxxxx', 1);
// Make bouncer 'xxxxxx' normal user again
bot.moderateSetRole('xxxxxx', PlugAPI.ROOM_ROLE.NONE);