3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00
This commit is contained in:
Dragory 2021-08-19 00:59:28 +03:00
parent 9244ee54a7
commit 86ccae016b
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -7,6 +7,8 @@ const queue = new Queue();
export function hotfixMessageFetch(channel: TextChannel | ThreadChannel, messageId: string): Promise<Message> {
return queue.add(async () => {
await sleep(3000);
// tslint:disable-next-line:no-console
console.trace(`Fetching message id ${messageId} from channel ${channel.id}`);
return channel.messages.fetch(messageId);
});
}