Skip to content
Sign upLog in
← Back to Community

How do you make a 3 way invite tracker

Profile icon

I made this simple invite tracker code (shown below). But I want to make it better with the following 3 things:

  • Make it so you can use it on other people, e.g zl invites
  • Make it so you can take away invites. e.g zl remove invites

If you know how to do any of these please tell me! :D
You can DM me on discord as I am more active over there: Tagged#4121

client.on('message', message => {
if(message.content === "zr invites"){
var user =;

message.guild.fetchInvites() .then (invites => { const userInvites = invites.array().filter(o => ===; var userInviteCount = 0; for(var i=0; i < userInvites.length; i++) { var invite = userInvites[i]; userInviteCount += invite['uses']; } message.reply(`You have ${userInviteCount} invites.`); } ) }


Profile icon