Error: Invalid value GuildMember

I'm working on unmute command for my guild designed bot. However when i run the command the mentioned error occurs. Its worth to note that i use v13.14.0 not v13.17.1
12 Replies
d.js toolkit
d.js toolkitโ€ข9mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - โœ… Marked as resolved by staff
waff1e ๐ŸŒน
waff1e ๐ŸŒนOPโ€ข9mo ago
here is the code
waff1e ๐ŸŒน
waff1e ๐ŸŒนOPโ€ข9mo ago
and here is error code
waff1e ๐ŸŒน
waff1e ๐ŸŒนOPโ€ข9mo ago
there's no information about line that causes the issue
Syjalo
Syjaloโ€ข9mo ago
Show the error stack and update npm i discord.js@v13-lts
waff1e ๐ŸŒน
waff1e ๐ŸŒนOPโ€ข9mo ago
at Object.escape (...\node_modules\sequelize\lib\sql-string.js:53:11)
at SQLiteQueryGenerator.escape (...\sequelize\lib\dialects\abstract\query-generator.js:763:22)
at SQLiteQueryGenerator.whereItemQuery (...\node_modules\sequelize\lib\dialects\abstract\query-generator.js:1821:102)
at ...\node_modules\sequelize\lib\dialects\abstract\query-generator.js:1734:25
at Array.forEach (<anonymous>)
at SQLiteQueryGenerator.whereItemsQuery (...\node_modules\sequelize\lib\dialects\abstract\query-generator.js:1732:35)
at SQLiteQueryGenerator.getWhereConditions (...\node_modules\sequelize\lib\dialects\abstract\query-generator.js:2075:19)
at SQLiteQueryGenerator.selectQuery (...\node_modules\sequelize\lib\dialects\abstract\query-generator.js:988:28)
at SQLiteQueryInterface.select (...\node_modules\sequelize\lib\dialects\abstract\query-interface.js:407:59)
at Cases.findAll (...\node_modules\sequelize\lib\model.js:1140:47)
at Object.escape (...\node_modules\sequelize\lib\sql-string.js:53:11)
at SQLiteQueryGenerator.escape (...\sequelize\lib\dialects\abstract\query-generator.js:763:22)
at SQLiteQueryGenerator.whereItemQuery (...\node_modules\sequelize\lib\dialects\abstract\query-generator.js:1821:102)
at ...\node_modules\sequelize\lib\dialects\abstract\query-generator.js:1734:25
at Array.forEach (<anonymous>)
at SQLiteQueryGenerator.whereItemsQuery (...\node_modules\sequelize\lib\dialects\abstract\query-generator.js:1732:35)
at SQLiteQueryGenerator.getWhereConditions (...\node_modules\sequelize\lib\dialects\abstract\query-generator.js:2075:19)
at SQLiteQueryGenerator.selectQuery (...\node_modules\sequelize\lib\dialects\abstract\query-generator.js:988:28)
at SQLiteQueryInterface.select (...\node_modules\sequelize\lib\dialects\abstract\query-interface.js:407:59)
at Cases.findAll (...\node_modules\sequelize\lib\model.js:1140:47)
Syjalo
Syjaloโ€ข9mo ago
That's a seauelize error. Not related to discord.js
waff1e ๐ŸŒน
waff1e ๐ŸŒนOPโ€ข9mo ago
it has nothing to do with discord by itself and error is about GuildMember i mean i import user from database maybe thats why however user is just their ID
Requiem
Requiemโ€ข9mo ago
I think he/she meant the error occurs as a sequalize error, the module you are using, it is not a djs error, hence he canโ€™t help youโ€ฆ
waff1e ๐ŸŒน
waff1e ๐ŸŒนOPโ€ข9mo ago
Oh right i didnt notice that. It fixed my problem thank u very much for help
Want results from more Discord servers?
Add your server