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 toolkit16mo 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
Syjalo16mo ago
<User>.id or <GuildMember>.id
itsabinashb
itsabinashbOP16mo ago
Could you please provide any code reference?
treble/luna
treble/luna16mo ago
Please dont crosspost
Syjalo
Syjalo16mo ago
interaction.member.id or message.member.id. Depends on which member do you want.
wet toast
wet toast16mo ago
<GuildMember>.id/<user>.id
Want results from more Discord servers?
Add your server