fix: Fix forEach async callback
This commit is contained in:
parent
38fe3f0be2
commit
bc4cc2b6b1
1 changed files with 3 additions and 7 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue