Shiro
DIAdiscord.js - Imagine an app
•Created by Shiro on 10/7/2023 in #djs-questions
TypeError: Cannot read properties of undefined (reading 'has')
problem solved, thanks guys
22 replies
DIAdiscord.js - Imagine an app
•Created by Shiro on 10/7/2023 in #djs-questions
TypeError: Cannot read properties of undefined (reading 'has')
I just put interaction the first time
22 replies
DIAdiscord.js - Imagine an app
•Created by Shiro on 10/7/2023 in #djs-questions
TypeError: Cannot read properties of undefined (reading 'has')
k it was interaction.client
22 replies
DIAdiscord.js - Imagine an app
•Created by Shiro on 10/7/2023 in #djs-questions
TypeError: Cannot read properties of undefined (reading 'has')
wait-
22 replies
DIAdiscord.js - Imagine an app
•Created by Shiro on 10/7/2023 in #djs-questions
TypeError: Cannot read properties of undefined (reading 'has')
I tried but it gave the .has error anyways
22 replies
DIAdiscord.js - Imagine an app
•Created by Shiro on 10/7/2023 in #djs-questions
TypeError: Cannot read properties of undefined (reading 'has')
the collection is created in the index file
22 replies
DIAdiscord.js - Imagine an app
•Created by Shiro on 10/7/2023 in #djs-questions
TypeError: Cannot read properties of undefined (reading 'has')
how should I do it then?
22 replies
DIAdiscord.js - Imagine an app
•Created by Shiro on 10/7/2023 in #djs-questions
TypeError: Cannot read properties of undefined (reading 'has')
oh-
22 replies
DIAdiscord.js - Imagine an app
•Created by Shiro on 10/7/2023 in #djs-questions
TypeError: Cannot read properties of undefined (reading 'has')
22 replies
DIAdiscord.js - Imagine an app
•Created by Shiro on 10/7/2023 in #djs-questions
TypeError: Cannot read properties of undefined (reading 'has')
alright
22 replies
DIAdiscord.js - Imagine an app
•Created by Shiro on 10/7/2023 in #djs-questions
TypeError: Cannot read properties of undefined (reading 'has')
and trying to call it using const client = require('../index.js');
22 replies
DIAdiscord.js - Imagine an app
•Created by Shiro on 10/7/2023 in #djs-questions
TypeError: Cannot read properties of undefined (reading 'has')
It is defined in the index.js file
22 replies
DIAdiscord.js - Imagine an app
•Created by Shiro on 10/7/2023 in #djs-questions
TypeError: Cannot read properties of undefined (reading 'has')
node:events:492
throw er; // Unhandled 'error' event
^
TypeError: Cannot read properties of undefined (reading 'has')
at Object.execute (C:\Users\angel\OneDrive\Escritorio\GL1TCH\src\events\interactionCreate.js:18:23)
at Client.<anonymous> (C:\Users\angel\OneDrive\Escritorio\GL1TCH\src\index.js:39:51)
at Client.emit (node:events:514:28)
at InteractionCreateAction.handle (C:\Users\angel\OneDrive\Escritorio\GL1TCH\node_modules\discord.js\src\client\actions\InteractionCreate.js:97:12)
at module.exports [as INTERACTION_CREATE] (C:\Users\angel\OneDrive\Escritorio\GL1TCH\node_modules\discord.js\src\client\websocket\handlers\INTERACTION_CREATE.js:4:36)
at WebSocketManager.handlePacket (C:\Users\angel\OneDrive\Escritorio\GL1TCH\node_modules\discord.js\src\client\websocket\WebSocketManager.js:355:31)
at WebSocketManager.<anonymous> (C:\Users\angel\OneDrive\Escritorio\GL1TCH\node_modules\discord.js\src\client\websocket\WebSocketManager.js:239:12)
at WebSocketManager.emit (C:\Users\angel\OneDrive\Escritorio\GL1TCH\node_modules@vladfrangu\async_event_emitter\dist\index.js:282:31)
at WebSocketShard.<anonymous> (C:\Users\angel\OneDrive\Escritorio\GL1TCH\node_modules@discordjs\ws\dist\index.js:1173:51)
at WebSocketShard.emit (C:\Users\angel\OneDrive\Escritorio\GL1TCH\node_modules@vladfrangu\async_event_emitter\dist\index.js:282:31)
Emitted 'error' event on Client instance at:
at emitUnhandledRejectionOrErr (node:events:395:10)
at process.processTicksAndRejections (node:internal/process/task_queues:84:21)
Node.js v18.17.1
22 replies
DIAdiscord.js - Imagine an app
•Created by Shiro on 10/7/2023 in #djs-questions
TypeError: Cannot read properties of undefined (reading 'has')
Alright
22 replies
DIAdiscord.js - Imagine an app
•Created by Shiro on 6/23/2023 in #djs-questions
GuildMemberAdd event not working
I was missing an await before the Guild.findOne
10 replies
DIAdiscord.js - Imagine an app
•Created by Shiro on 6/23/2023 in #djs-questions
GuildMemberAdd event not working
alright nvm, found it
10 replies
DIAdiscord.js - Imagine an app
•Created by Shiro on 6/23/2023 in #djs-questions
GuildMemberAdd event not working
did a console.log of the events in the forof loop
10 replies
DIAdiscord.js - Imagine an app
•Created by Shiro on 6/23/2023 in #djs-questions
GuildMemberAdd event not working
and it's the one from the official disordjs.guide
10 replies
DIAdiscord.js - Imagine an app
•Created by Shiro on 6/23/2023 in #djs-questions
GuildMemberAdd event not working
It registers interactionCreate and ready events
10 replies