FavoriteManager - antilandjs/antiland.js GitHub Wiki
The manager for any and all, cached or uncached, favourited chats.
extends BaseManager
Methods
Promise<object>
.add(channelId) :Add a chat to favourites.
Name | Type | Optional |
---|---|---|
userId | string | No |
Promise<ClientUser>
.backup(favourites?) :Backup your favourites.
Name | Type | Optional |
---|---|---|
favourites | object | Yes |
Promise<Dialogue>
.fetch(id, options?) :Fetch and cache a your favourites.
Name | Type | Optional |
---|---|---|
id | string | No |
options | object | Yes |
Promise<boolean>
.remove(channelId) :Remove a chat from your favourites.
Name | Type | Optional |
---|---|---|
userId | string | No |