options.uri is a required argument

for (const member of members) {
await member[1].roles.add(role)
}
for (const member of members) {
await member[1].roles.add(role)
}
after 10 added roles this error is appeared
Unhandled promise rejection: Error: options.uri is a required argument
at Request.init (c:\Users\AnthonyVault\Documents\GitHub\wetbot\node_modules\request\request.js:231:31)
at new Request (c:\Users\AnthonyVault\Documents\GitHub\wetbot\node_modules\request\request.js:127:8)
at request (c:\Users\AnthonyVault\Documents\GitHub\wetbot\node_modules\request\index.js:53:10)
at _REST.<anonymous> (c:\Users\AnthonyVault\Documents\GitHub\wetbot\index.js:88:5)
at _REST.emit (C:\Users\AnthonyVault\Documents\GitHub\wetbot\node_modules\@vladfrangu\async_event_emitter\dist\index.cjs:285:31)
at SequentialHandler.runRequest (C:\Users\AnthonyVault\Documents\GitHub\wetbot\node_modules\@discordjs\rest\dist\index.js:1017:20)
at SequentialHandler.queueRequest (C:\Users\AnthonyVault\Documents\GitHub\wetbot\node_modules\@discordjs\rest\dist\index.js:963:25)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {stack: 'Error: options.uri is a required argument
…ions (node:internal/process/task_queues:95:5)', message: 'options.uri is a required argument', Symbol(kEnhanceStackBeforeInspector): ƒ}
Unhandled promise rejection: Error: options.uri is a required argument
at Request.init (c:\Users\AnthonyVault\Documents\GitHub\wetbot\node_modules\request\request.js:231:31)
at new Request (c:\Users\AnthonyVault\Documents\GitHub\wetbot\node_modules\request\request.js:127:8)
at request (c:\Users\AnthonyVault\Documents\GitHub\wetbot\node_modules\request\index.js:53:10)
at _REST.<anonymous> (c:\Users\AnthonyVault\Documents\GitHub\wetbot\index.js:88:5)
at _REST.emit (C:\Users\AnthonyVault\Documents\GitHub\wetbot\node_modules\@vladfrangu\async_event_emitter\dist\index.cjs:285:31)
at SequentialHandler.runRequest (C:\Users\AnthonyVault\Documents\GitHub\wetbot\node_modules\@discordjs\rest\dist\index.js:1017:20)
at SequentialHandler.queueRequest (C:\Users\AnthonyVault\Documents\GitHub\wetbot\node_modules\@discordjs\rest\dist\index.js:963:25)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {stack: 'Error: options.uri is a required argument
…ions (node:internal/process/task_queues:95:5)', message: 'options.uri is a required argument', Symbol(kEnhanceStackBeforeInspector): ƒ}
2 Replies
d.js toolkit
d.js toolkit5mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
ɅV
ɅVOP5mo ago
I got my mistake, thanks
Want results from more Discord servers?
Add your server