6 Replies
d.js toolkit
d.js toolkitβ€’10mo 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
D4rck_King πŸ–€
D4rck_King πŸ–€OPβ€’10mo ago
I can't find the problem, can you help me? At what point did I make a mistake? tell me the positions It gives me problems on line 381 column 11 how can I solve it? Because I can't solve it if I change ChannelId and put ChID is it ok or is it always wrong? I apologize, I found the problem, I couldn't understand, now I'll try and let you know @Qjuh now it gives me an error on line 210 column 48
D4rck_King πŸ–€
D4rck_King πŸ–€OPβ€’10mo ago
SourceBin
Error
Instantly share your code with the world.
florentine
florentineβ€’10mo ago
what is the value of the Channel variable in that scenario? the function fetchWebhooks() on the variable you’re referencing is undefined, meaning your variable is not what you think it is maybe try to console.log the Channel variable - tell us what it says so we know what the value is
D4rck_King πŸ–€
D4rck_King πŸ–€OPβ€’10mo ago
I didn't understand, here is all the code: https://sourceb.in/ZcQbxPxfzf
SourceBin
log-system
Instantly share your code with the world.
D4rck_King πŸ–€
D4rck_King πŸ–€OPβ€’10mo ago
Can anyone help me solve this problem?
TypeError: Cannot read properties of undefined (reading 'fetchWebhooks')
at InteractionCollector.<anonymous> (C:\Users\PC\Desktop\LunarDSC official 2.0\srcs\Commands\Admin\log-system.js:211:48)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
TypeError: Cannot read properties of undefined (reading 'fetchWebhooks')
at InteractionCollector.<anonymous> (C:\Users\PC\Desktop\LunarDSC official 2.0\srcs\Commands\Admin\log-system.js:211:48)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
it still gives me this problem with console.log it tells me this I have to put try {} catch (e) {console.log(e)} in line 206 to 211 I'm having trouble writing it
const Type = i.message.components[0].components[0].data.options;
const ChannelId = i.message.embeds[0].fields[0].value
.split(" ")[0]
.slice(2, -1);
console.log(ChannelId)
const Type = i.message.components[0].components[0].data.options;
const ChannelId = i.message.embeds[0].fields[0].value
.split(" ")[0]
.slice(2, -1);
console.log(ChannelId)
Like this? Yes, I wrote the code
Want results from more Discord servers?
Add your server