TATHAN
TATHAN
DIAdiscord.js - Imagine an app
Created by TATHAN on 6/18/2024 in #djs-voice
Cannot find module @discordjs
Hey ! I want to play around with the voice library but I have this error
node:internal/modules/cjs/loader:599
throw e;
^

Error: Cannot find module 'D:\Programming\javascript\lang-learner\node_modules\@discordjs\voice\dist\index.js'
at createEsmNotFoundErr (node:internal/modules/cjs/loader:1182:15)
at finalizeEsmResolution (node:internal/modules/cjs/loader:1170:15)
at resolveExports (node:internal/modules/cjs/loader:592:14)
at Module._findPath (node:internal/modules/cjs/loader:669:31)
at Module._resolveFilename (node:internal/modules/cjs/loader:1131:27)
at Module._load (node:internal/modules/cjs/loader:986:27)
at Module.require (node:internal/modules/cjs/loader:1233:19)
at require (node:internal/modules/helpers:179:18)
at Object.<anonymous> (D:\Programming\javascript\lang-learner\helpers\voice-helper.js:3:30)
at Module._compile (node:internal/modules/cjs/loader:1358:14) {
code: 'MODULE_NOT_FOUND',
path: 'D:\\Programming\\javascript\\lang-learner\\node_modules\\@discordjs\\voice\\package.json'
}
node:internal/modules/cjs/loader:599
throw e;
^

Error: Cannot find module 'D:\Programming\javascript\lang-learner\node_modules\@discordjs\voice\dist\index.js'
at createEsmNotFoundErr (node:internal/modules/cjs/loader:1182:15)
at finalizeEsmResolution (node:internal/modules/cjs/loader:1170:15)
at resolveExports (node:internal/modules/cjs/loader:592:14)
at Module._findPath (node:internal/modules/cjs/loader:669:31)
at Module._resolveFilename (node:internal/modules/cjs/loader:1131:27)
at Module._load (node:internal/modules/cjs/loader:986:27)
at Module.require (node:internal/modules/cjs/loader:1233:19)
at require (node:internal/modules/helpers:179:18)
at Object.<anonymous> (D:\Programming\javascript\lang-learner\helpers\voice-helper.js:3:30)
at Module._compile (node:internal/modules/cjs/loader:1358:14) {
code: 'MODULE_NOT_FOUND',
path: 'D:\\Programming\\javascript\\lang-learner\\node_modules\\@discordjs\\voice\\package.json'
}
I download theses module : - @discordjs/voice - prism-media - @discordjs/opus - libsodium-wrappers
5 replies
DIAdiscord.js - Imagine an app
Created by TATHAN on 6/16/2024 in #djs-questions
Collectors not working
Hey ! So I have a command (in a different file) that open a modal and when the modal is submitted (in the index.js) I add a button to the reply message and want to do something when the user click the button and reuse modal informations. So I tried collectors but when the user click the button, nothing happen. But when the time is out," End "appear in the console Here is my code : https://code.litarvan.com/jopubaza.js
10 replies
DIAdiscord.js - Imagine an app
Created by TATHAN on 6/15/2024 in #djs-questions
Send data with component
Hey ! I have a command and I reply to the interaction by sending a modal and after sending a message with a button. But I need to get the infos from the modal when responding of the button clicked ! If this is possible
4 replies