Lookup Error
Hey! I upgraded to the newest discordjs and one of my commands are not working anymore.
I build in logs & that is the output:
this code worked and now it says the error
12 Replies
- 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!Node: v20.14.0
discordjs:
├─┬ @discordx/[email protected]
│ └── [email protected] deduped
├── [email protected]
└─┬ [email protected]
└── [email protected] deduped
Sounds like you are calling your fetchGuildMember on something thats undefined whilst it is a standalone function
i mean it worked 2-3 days ago and since today its not working but no
const member = await this.fetchGuildMember(interaction, user);
Then sounds like your
this
is undefined there, you maybe losing your this
context or there maybe some other cause
Would be good if you showed your full codeHow do you call discordInfo? If you destructure it from the instance, that could explain the issue or it maybe related to your decorator
its a context menu command
I see that. Not what I asked though
Is it related to my framework also discordx or how? cuz im not an expert and idk why it broke cuz i didnt change smth
it has to do with the update but idk what. my old bot who has the same command its working there. the new command just has buttons and the logic for that
none of it looks to be related to djs though
idk somehow after reinstall of both npm packages, its working again.