Berrie
DIAdiscord.js - Imagine an app
•Created by Berrie on 5/26/2024 in #djs-questions
Cannot read data and .toJSON
C:\Users\Bernardo\Desktop\berrie\main.js:37
for (const command of commands) { commandArray.push(client.commands.get(command).data.toJSON()); }
^
TypeError: Cannot read properties of undefined (reading 'data')
at client.pushcmds (C:\Users\Bernardo\Desktop\berrie\main.js:37:82)
at C:\Users\Bernardo\Desktop\berrie\dashboard\dash.js:35:30
at Layer.handle [as handle_request] (C:\Users\Bernardo\Desktop\berrie\node_modules\express\lib\router\layer.js:95:5)
at next (C:\Users\Bernardo\Desktop\berrie\node_modules\express\lib\router\route.js:149:13)
at Route.dispatch (C:\Users\Bernardo\Desktop\berrie\node_modules\express\lib\router\route.js:119:3)
at Layer.handle [as handle_request] (C:\Users\Bernardo\Desktop\berrie\node_modules\express\lib\router\layer.js:95:5)
at C:\Users\Bernardo\Desktop\berrie\node_modules\express\lib\router\index.js:284:15
at param (C:\Users\Bernardo\Desktop\berrie\node_modules\express\lib\router\index.js:365:14)
at param (C:\Users\Bernardo\Desktop\berrie\node_modules\express\lib\router\index.js:376:14)
at Function.process_params (C:\Users\Bernardo\Desktop\berrie\node_modules\express\lib\router\index.js:421:3)
7 replies
DIAdiscord.js - Imagine an app
•Created by Berrie on 5/16/2024 in #djs-questions
Receiving undefined for Message#guild although it should be Guild or null
undefined
13 replies
DIAdiscord.js - Imagine an app
•Created by Berrie on 5/14/2024 in #djs-questions
unknown interaction
Hi guys,
I get the unknown interaction on regular base:'(. See the sourcebin for my error and code. https://srcb.in/N5vxXOPm0c
28 replies