How to get the member that used the slash command?

node = 18.16.0 discordjs = 14.11.0
7 Replies
d.js toolkit
d.js toolkit2y ago
• 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.
Mardroide
Mardroide2y ago
Hi, you can use interaction.user
Massicraft
MassicraftOP2y ago
so if i want to store it const user = interacion.user ?
KAVI
KAVI2y ago
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 interaction
Mardroide
Mardroide2y ago
Yeah
KAVI
KAVI2y ago
const { member } = interaction
Massicraft
MassicraftOP2y ago
ok thanks
Want results from more Discord servers?
Add your server