The server the members belongs to.
Readonly
cacheThis cache of the manager.
Readonly
clientReadonly
serverAward XP to a member in the server.
The total amount of XP the server member has.
members.awardXp(member, 100);
The member to award XP to.
The amount of XP to award to the member.
Ban a member from the server.
The created ban.
members.ban(member);
The member to ban.
Optional
reason: stringThe reason of the ban.
Fetch a member from the server, or cache.
The fetched member.
members.fetch(member);
The member to fetch.
Optional
options: FetchOptionsThe options to fetch the member with.
Fetch members from the server.
The fetched members.
members.fetch();
Optional
options: FetchManyOptionsThe options to fetch members with.
Fetch a social link from a member in the server.
The fetched social link.
members.fetchSocialLink(member, 'youtube');
The member to fetch the social link from.
The type of social link to fetch.
Kick a member from the server.
members.kick(member);
The member to kick.
Remove the nickname of a member in the server.
members.removeNickname(member);
The member to edit.
Set the maximum cache size of the manager.
The manager.
manager.setMaxCache(100);
The maximum size of the cache.
Set the nickname of a member in the server.
The nickname of the member.
members.setNickname(member, 'new nickname');
The member to edit.
The nickname of the member.
Set XP of a member in the server.
The total amount of XP the server member has.
members.setXp(member, 100);
The member to set XP for.
The total XP of the server member.
Unban a member from the server.
members.unban(member);
The member to unban.
The manager of members that belong to a server.
Example