How to get the member that used the slash command?
node = 18.16.0
discordjs = 14.11.0
7 Replies
⢠What's your exact discord.js
npm list discord.js and node node -v version?
⢠Post the full error stack trace, not just the top part!
⢠Show your code!
⢠Explain what exactly your issue is.
⢠Not a discord.js issue? Check out #useful-servers.Hi, you can use
interaction.userso if i want to store it
const user = interacion.user ?That's the user object
Not the member object
If you want the member object you can do
interaction.member
And store it in a variable like how you'd do normally
Or just destructure the interactionYeah
const { member } = interactionok thanks