Skip to content

Commit

Permalink
fix(ThreadManager): fixed wrong private and fetchAll check (#6012)
Browse files Browse the repository at this point in the history
  • Loading branch information
herrtxbias committed Jul 3, 2021
1 parent 3a718d8 commit e4be666
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/managers/ThreadManager.js
Expand Up @@ -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;
Expand Down

0 comments on commit e4be666

Please sign in to comment.