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 {
|
} else {
|
||||||
await content.split("\n").forEach(async text => {
|
for (const text of content.split("\n")) {
|
||||||
await playVoice(
|
await playVoice(guild, profile, text);
|
||||||
guild,
|
}
|
||||||
profile,
|
|
||||||
text
|
|
||||||
);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue