BanManager - antilandjs/antiland.js GitHub Wiki
The manager for any and all, cached or uncached, group member bans.
extends BaseManager
Methods
Promise<object>
.add(userId, options?) :Ban a user from the chat.
Name | Type | Optional |
---|---|---|
userId | string | No |
options | object | Yes |
Promise<Dialogue>
.appeal() :Appeal a ban.
Promise<object | null>
.fetch(userId, options?) :Fetch any or all active bans in the chat.
Name | Type | Optional |
---|---|---|
userId | string | Yes |
options | object | Yes |
Promise<boolean>
.remove(userId, options?) :Unban a banned user.
Name | Type | Optional |
---|---|---|
userId | string | No |
options | object | Yes |