mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 11:33: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) {
|
async fetchArchived({ type = 'public', fetchAll = false, before, limit } = {}, cache = true) {
|
||||||
let path = this.client.api.channels(this.channel.id);
|
let path = this.client.api.channels(this.channel.id);
|
||||||
if (type === 'private' && fetchAll) {
|
if (type === 'private' && !fetchAll) {
|
||||||
path = path.users('@me');
|
path = path.users('@me');
|
||||||
}
|
}
|
||||||
let timestamp;
|
let timestamp;
|
||||||
|
|||||||
Reference in New Issue
Block a user