The server the bans belongs to.
Readonly cacheThis cache of the manager.
Readonly clientThe client the manager belongs to.
Readonly serverThe server the bans belongs to.
Create a ban in the server.
The created ban.
bans.create(member);
The member the ban belongs to.
Optional reason: stringThe reason of the ban.
Fetch a ban from the server, or cache.
The fetched ban.
bans.fetch(ban);
The ban to fetch.
Optional options: FetchOptionsThe options to fetch the ban with.
Fetch bans from thw server.
The fetched bans.
bans.fetch();
Optional options: FetchManyOptionsThe options to fetch bans with.
Set the maximum cache size of the manager.
The manager.
manager.setMaxCache(100);
The maximum size of the cache.
The manager of bans that belong to a server.
Example