Bot Crashes After Adding Role To Member
I made sure my discordjs was up to date but still getting this issue
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!
- ✅
Marked as resolved by staffdo you have the Guilds intent
also
use interaction.member, no need to get from cache
yea ive got the guild intent, tried changing to interaction.member but getting the same issue
show your client constructor
intents is an array
oh gotcha, is there an example of how to write the constructor ur able to send? (im new to both js and djs)
do you not know what an array is?
yeah just not sure what the syntax is in js
if so, i recommend learning js first as djs requires a strong djs understanding, #rules 3 #resources
alr well just changing the parenthesis to square brackets fixed it so thnx 🫡
yea realistically i prob shd, its just i have a pretty strong understanding of other languages and most of the js tutorials ive seen are aimed at ppl who've never coded before