How to get a member's discord id using javascript?

Hi, I have a discord server, i used tatsu bot to allow points to members of my server based on how active they are. For that tatsu provides an api : https://dev.tatsu.gg/api/guilds#get-guild-member-points. But for that we need to get the member's discord id. How can i get the discord id of a member using javascript??
6 Replies
d.js toolkit
d.js toolkit10mo ago
- 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!
Syjalo
Syjalo10mo ago
<User>.id or <GuildMember>.id
itsabinashb
itsabinashb10mo ago
Could you please provide any code reference?
treble/luna
treble/luna10mo ago
Please dont crosspost
Syjalo
Syjalo10mo ago
interaction.member.id or message.member.id. Depends on which member do you want.
wet toast
wet toast10mo ago
<GuildMember>.id/<user>.id