Class: MinimalUser

MinimalUser

An user with the minimum of information plug gives

Constructor

new MinimalUser()

Properties:
Name Type Description
id Number The id of the user.
username String The name of the user
Source:

Methods

ban(time, reason) → {Promise}

Bans the user from the community
Parameters:
Name Type Description
time String
reason Number
Source:
Returns:
Type
Promise

removeRole() → {Promise}

Shorthand for {MinimalUser}.setStaff(0)
Source:
Returns:
Type
Promise

setRole(role) → {Promise}

Sets the user as staff
Parameters:
Name Type Description
role Number the role, 0 for grey, 1 for res dj, 2 for bouncer, 3 for manager, 4 for co-host, 5 for host
Source:
Returns:
Type
Promise

unban() → {Promise}

Unbans the user from the community
Source:
Returns:
Type
Promise