mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
fix(ThreadManager): fixed wrong private and fetchAll check (#6012)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user