This commit is contained in:
Dragory 2021-08-19 01:04:41 +03:00
parent cc9aaf235e
commit 6a94ec9b3e
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -9,11 +9,13 @@ export function hotfixMessageFetch(channel: TextChannel | ThreadChannel, message
const thisN = ++n;
// tslint:disable-next-line:no-console
console.log(`[${thisN}] Queueing to fetch message id ${messageId} from channel ${channel.id}`);
console.trace(
`[${thisN}] Queueing to fetch message id ${messageId} from channel ${channel.id} (queue size: ${queue.length})`,
);
return queue.add(async () => {
await sleep(3000);
// tslint:disable-next-line:no-console
console.trace(`[${thisN}] Fetching message id ${messageId} from channel ${channel.id}`);
console.log(`[${thisN}] Fetching message id ${messageId} from channel ${channel.id}`);
return channel.messages.fetch(messageId);
});
}