FavoriteManager - antilandjs/antiland.js GitHub Wiki

The manager for any and all, cached or uncached, favourited chats.

extends BaseManager

Methods

.add(channelId) : Promise<object>

Add a chat to favourites.

Name Type Optional
userId string No

.backup(favourites?) : Promise<ClientUser>

Backup your favourites.

Name Type Optional
favourites object Yes

.fetch(id, options?) : Promise<Dialogue>

Fetch and cache a your favourites.

Name Type Optional
id string No
options object Yes

.remove(channelId) : Promise<boolean>

Remove a chat from your favourites.

Name Type Optional
userId string No