From bc4cc2b6b15d1d6ecc4bf2ded36a105f71938e3a Mon Sep 17 00:00:00 2001 From: kimpure Date: Tue, 17 Feb 2026 14:30:12 +0000 Subject: [PATCH] fix: Fix forEach async callback --- packages/bot/events/readChannel.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/packages/bot/events/readChannel.ts b/packages/bot/events/readChannel.ts index 6cf0e59..b2e5765 100644 --- a/packages/bot/events/readChannel.ts +++ b/packages/bot/events/readChannel.ts @@ -48,13 +48,9 @@ export default defineEvent("messageCreate", async (message) => { : "알수없는 메시지" ); } else { - await content.split("\n").forEach(async text => { - await playVoice( - guild, - profile, - text - ); - }); + for (const text of content.split("\n")) { + await playVoice(guild, profile, text); + } } } catch(err) {