ModeratorManager - antilandjs/antiland.js GitHub Wiki
The manager for any and all, cached or uncached, group moderators.
extends BaseManager
Properties
boolean
.manageable :Whether the client user can manage moderators for this group chat.
Methods
Promise<boolean>
.add(userId) :Add a user as a moderator of this group chat.
Name | Type | Optional |
---|---|---|
userId | string | No |
Promise<Member | Map<string, Member> | null>
.fetch(userId, options?) :Fetch any or all active moderators in the chat.
Name | Type | Optional |
---|---|---|
userId | string | Yes |
options | object | Yes |
Promise<Array<string>>
.remove(userId) :Revoke the moderator status of a moderator.
Name | Type | Optional |
---|---|---|
userId | string | No |