Cannot read properties of undefined (reading 'BanMembers')
15 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
remove the "s" to Permissions
Again

Mhm wait
Mhm no
npm ls discord.js
and show the output
why have you selected the v14.8.0 label?
Rhro sry
there you go then
what you were using is for v14
How on installing v14
there’s a lot of breaking changes
so make sure to follow the upgrading guide after installing it
npm i discord.js@latest
Can we go back just in case?
and if you want to keep using v13, use this doc: https://discord.js.org/#/docs/discord.js/v13/general/welcome
https://v13.discordjs.guide/
sure
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
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