The server the bans belongs to.
Readonly
cacheThis cache of the manager.
Readonly
clientReadonly
serverCreate 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