fix(ThreadManager): fixed wrong private and fetchAll check (#6012)

This commit is contained in:
Tobias Peltzer
2021-07-03 09:56:35 +02:00
committed by GitHub
parent 3a718d8c62
commit e4be666c2c

View File

@@ -198,7 +198,7 @@ class ThreadManager extends BaseManager {
*/
async fetchArchived({ type = 'public', fetchAll = false, before, limit } = {}, cache = true) {
let path = this.client.api.channels(this.channel.id);
if (type === 'private' && fetchAll) {
if (type === 'private' && !fetchAll) {
path = path.users('@me');
}
let timestamp;