The server member the roles belong to.
Readonly
cacheThis cache of the manager.
Readonly
clientThe client the manager belongs to.
Readonly
memberThe server member the roles belong to.
Assign a role to the member.
The role that was added to the member.
roles.assign(role);
The role to add to the member.
Fetch roles that belong to the member.
The fetched roles that belong to the member.
roles.fetch();
Optional
options: ServerMemberRoleFetchManyOptionsThe 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 the member.
The role that was removed from the member.
roles.unassign(role);
The role to remove from the member.
The manager of roles that belong to a server member.
Example