BanManager - antilandjs/antiland.js GitHub Wiki

The manager for any and all, cached or uncached, group member bans.

extends BaseManager

Methods

.add(userId, options?) : Promise<object>

Ban a user from the chat.

Name Type Optional
userId string No
options object Yes

.appeal() : Promise<Dialogue>

Appeal a ban.

.fetch(userId, options?) : Promise<object | null>

Fetch any or all active bans in the chat.

Name Type Optional
userId string Yes
options object Yes

.remove(userId, options?) : Promise<boolean>

Unban a banned user.

Name Type Optional
userId string No
options object Yes