fix: Fix forEach async callback

This commit is contained in:
kimpure 2026-02-17 14:30:12 +00:00
parent 38fe3f0be2
commit bc4cc2b6b1

View file

@ -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) {