discordbot/errors/2025-04-04T17-07-40.882Z.txt
2025-04-04 18:17:40 +01:00

16 lines
963 B
Plaintext

SyntaxError: await is only valid in async functions and the top level bodies of modules
/root/oixb/src/commands/Community/comandoAdd.js:13
const dynamicChoices = await getChoicesFromDB();
^^^^^
SyntaxError: await is only valid in async functions and the top level bodies of modules
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1274:20)
at Module._compile (node:internal/modules/cjs/loader:1320:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at loadCommand (/root/oixb/src/functions/handlers/handleCommands.js:77:25)
at loadCommands (/root/oixb/src/functions/handlers/handleCommands.js:102:25)