The server the roles belong to.
Readonly
cacheThis cache of the manager.
Readonly
clientThe client the manager belongs to.
Readonly
serverThe server the roles belong to.
Assign a role to a member.
The role that was added to the member.
roles.assign(member, role);
The member the role belongs to.
The role to add to the member.
Award XP to a role.
roles.awardXp(role, 100);
The role to award XP to.
The amount of XP to award to the role.
Fetch roles that belong to a member.
The fetched roles that belong to the member.
roles.fetch(member);
The member the roles belong to.
Optional
options: ServerRoleFetchManyOptionsThe options to fetch the roles with.
Set the maximum cache size of the manager.
The manager.
manager.setMaxCache(100);
The maximum size of the cache.
Unassign a role from a member.
The role that was removed from the member.
roles.unassign(member, role);
The member the role belongs to.
The role to remove from the member.
A manager of roles that belong to a server.
Example