TaraHarkon
DIAdiscord.js - Imagine an app
•Created by TaraHarkon on 3/9/2024 in #djs-questions
getInteger not working for one option but is working for another?
oh! thank you so much. I've been staring at this for about an hour trying to find the problem
10 replies
DIAdiscord.js - Imagine an app
•Created by TaraHarkon on 3/9/2024 in #djs-questions
getInteger not working for one option but is working for another?
the first option ('times-to-roll') is working fine. Only 'mod' is failing and I'm not sure why. They're set up almost exactly the same way. The only difference is that 'mod' isn't required
10 replies
DIAdiscord.js - Imagine an app
•Created by TaraHarkon on 3/9/2024 in #djs-questions
getInteger not working for one option but is working for another?
TypeError: Cannot read properties of undefined (reading 'getInteger') at Object.execute (C:\Users\hilla\Code\tyche\commands\multiroll.js:23:39) at Client.<anonymous> (C:\Users\hilla\Code\tyche\index.js:45:17) at Client.emit (node:events:519:28) at Client.emit (node:domain:488:12) at InteractionCreateAction.handle (C:\Users\hilla\Code\tyche\node_modules\discord.js\src\client\actions\InteractionCreate.js:97:12) at module.exports [as INTERACTION_CREATE] (C:\Users\hilla\Code\tyche\node_modules\discord.js\src\client\websocket\handlers\INTERACTION_CREATE.js:4:36) at WebSocketManager.handlePacket (C:\Users\hilla\Code\tyche\node_modules\discord.js\src\client\websocket\WebSocketManager.js:355:31) at WebSocketManager.<anonymous> (C:\Users\hilla\Code\tyche\node_modules\discord.js\src\client\websocket\WebSocketManager.js:239:12) at WebSocketManager.emit (C:\Users\hilla\Code\tyche\node_modules@vladfrangu\async_event_emitter\dist\index.cjs:282:31) at WebSocketShard.<anonymous> (C:\Users\hilla\Code\tyche\node_modules@discordjs\ws\dist\index.js:1173:51)This is the full stack trace
10 replies