You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.
Thedark1337 edited this page Aug 31, 2016
·
2 revisions
moderateSetRole(userID, role[, callback])
Set a role to an user.
The bot needs to have manager permission or higher.
Parameters
userID number
The user's ID.
role int
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 (optional)
Callback function to be called with data from server.
Returns
true if request queued; otherwise false
Example
// Make normal user 'xxxxxx' Resident DJbot.moderateSetRole('xxxxxx',1);// Make bouncer 'xxxxxx' normal user againbot.moderateSetRole('xxxxxx',PlugAPI.ROOM_ROLE.NONE);