From e4dfb2ff3345320883196ac4c1b360845c1e5307 Mon Sep 17 00:00:00 2001 From: JellyBrick Date: Sun, 8 Oct 2023 15:01:26 +0900 Subject: [PATCH] feat(discord): remove hacky solution for calling callbacks --- plugins/discord/back.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/plugins/discord/back.ts b/plugins/discord/back.ts index 3b9844b1..454290a7 100644 --- a/plugins/discord/back.ts +++ b/plugins/discord/back.ts @@ -39,12 +39,9 @@ const resetInfo = () => { console.log('discord disconnected'); } - setTimeout(() => { - for (const cb of refreshCallbacks) { - cb(); - } - }, 100); - + for (const cb of refreshCallbacks) { + cb(); + } }; const connectTimeout = () => new Promise((resolve, reject) => setTimeout(() => {