ModeratorManager - antilandjs/antiland.js GitHub Wiki

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

extends BaseManager

Properties

.manageable : boolean

Whether the client user can manage moderators for this group chat.

Methods

.add(userId) : Promise<boolean>

Add a user as a moderator of this group chat.

Name Type Optional
userId string No

.fetch(userId, options?) : Promise<Member | Map<string, Member> | null>

Fetch any or all active moderators in the chat.

Name Type Optional
userId string Yes
options object Yes

.remove(userId) : Promise<Array<string>>

Revoke the moderator status of a moderator.

Name Type Optional
userId string No