I don't have the necessary parametres
This is my code, below the last line, I keep trying to do
const guild = await interaction.client.etc.. - but client isn't a valid parametre6 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!
- ✅ Marked as resolved by OPIt is
If you actually pass in an interaction
The order of function parameters must match between definition and function call.
- mismatch! you pass an interaction where the client is expected
- mismatch! you pass the client where an interaction is expected
i mean like how it should just be a default attribute to interaction
I meant attribute not parametre sorry
when you do
interaction. there should be attributes that pop up by default on there
like
interaction.guild
etc..
mine doesn't show thatthats expected
js doesnt have autocomplete
You need to use jsdoc or typescript
ohh
Should I use this?
Yeah, resolved - thanks