Cannot read properties of undefined (reading 'BanMembers')

15 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
</> Idris
</> Idris2y ago
remove the "s" to Permissions
Maybe Ange
Maybe AngeOP2y ago
Again
Maybe Ange
Maybe AngeOP2y ago
Mhm wait Mhm no
</> Idris
</> Idris2y ago
npm ls discord.js and show the output
Maybe Ange
Maybe AngeOP2y ago
</> Idris
</> Idris2y ago
why have you selected the v14.8.0 label?
Maybe Ange
Maybe AngeOP2y ago
Rhro sry
</> Idris
</> Idris2y ago
there you go then what you were using is for v14
Maybe Ange
Maybe AngeOP2y ago
How on installing v14
</> Idris
</> Idris2y ago
there’s a lot of breaking changes so make sure to follow the upgrading guide after installing it npm i discord.js@latest
Maybe Ange
Maybe AngeOP2y ago
Can we go back just in case?
Maybe Ange
Maybe AngeOP2y ago
Currently 2 commands are registered to the bot. node:events:491 throw er; // Unhandled 'error' event ^ DiscordAPIError[50035]: Invalid Form Body type[NUMBER_TYPE_COERCE]: Value "CHAT_INPUT" is not int32. at SequentialHandler.runRequest (D:\Bot Discord\Maybe Ange Bot\node_modules@discordjs\rest\dist\index.js:933:15)
at processTicksAndRejections (node:internal/process/task_queues:96:5) at async SequentialHandler.queueRequest (D:\Bot Discord\Maybe Ange Bot\node_modules@discordjs\rest\dist\index.js:712:14) at async REST.request (D:\Bot Discord\Maybe Ange Bot\node_modules@discordjs\rest\dist\index.js:1321:22) at async ApplicationCommandManager.create (D:\Bot Discord\Maybe Ange Bot\node_modules\discord.js\src\managers\ApplicationCommandManager.js:144:18) at async module.exports (D:\Bot Discord\Maybe Ange Bot\utils\slashsync.js:19:9) at async module.exports (D:\Bot Discord\Maybe Ange Bot\events\discord\ready.js:4:3) Emitted 'error' event on Client instance at: at emitUnhandledRejectionOrErr (node:events:394:10) at processTicksAndRejections (node:internal/process/task_queues:85:21) { rawError: { code: 50035, errors: { type: { _errors: [ { code: 'NUMBER_TYPE_COERCE', message: 'Value "CHAT_INPUT" is not int32.' } ] } json: { name: 'ban', name_localizations: undefined, description: undefined, nsfw: undefined, description_localizations: undefined, type: 'CHAT_INPUT', options: undefined, default_member_permissions: undefined, dm_permission: undefined } } } xD

Did you find this page helpful?