-
Notifications
You must be signed in to change notification settings - Fork 4
Description
When running ESLint, 3 errors were revealed. 1 of the errors will not cause a crash because it is an unused variable, so it indicates incomplete or unnecessary code. 2 of the errors will cause a crash, as it is the use of the keyword "await" outside of async functions, which is a requirement for JavaScript that the keyword is used inside an asynchronous function. We need to identify and fix those two instances to prevent future crashes.
Need to check which code has the errors and have the implementer revisit these areas.
Error in app.js and deploy-commands.js
workspaces/Giselle-WaveY/src/app.js
23:1 error Parsing error: Cannot use keyword 'await' outside an async function
/workspaces/Giselle-WaveY/src/deploy-commands.js
11:33 error Parsing error: Cannot use keyword 'await' outside an async function
/workspaces/Giselle-WaveY/src/events/guildMemberAdd.js
6:7 error 'event' is assigned a value but never used no-unused-vars
✖ 3 problems (3 errors, 0 warnings)