mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-18 15:00:00 +00:00
+debug
This commit is contained in:
parent
9244ee54a7
commit
86ccae016b
1 changed files with 2 additions and 0 deletions
|
@ -7,6 +7,8 @@ const queue = new Queue();
|
||||||
export function hotfixMessageFetch(channel: TextChannel | ThreadChannel, messageId: string): Promise<Message> {
|
export function hotfixMessageFetch(channel: TextChannel | ThreadChannel, messageId: string): Promise<Message> {
|
||||||
return queue.add(async () => {
|
return queue.add(async () => {
|
||||||
await sleep(3000);
|
await sleep(3000);
|
||||||
|
// tslint:disable-next-line:no-console
|
||||||
|
console.trace(`Fetching message id ${messageId} from channel ${channel.id}`);
|
||||||
return channel.messages.fetch(messageId);
|
return channel.messages.fetch(messageId);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue