Description

A cool module that allows you to access the used invite in the memberAdd event!

Discord Invite Tracker

Getting Started

Use this command in your terminal to install the package.

npm i --save https://github.com/subhiashraf912/invitetracker

DO NOT USE THE ONE IN NPM CAUSE IT IS OUT DATED AND I LOST MY PASSWORD xD
latest version: 1.1.0 | npm version: 1.0.3

How to use

const Discord = require("discord.js");
const InviteTracker = require("djs-invite-tracker").default;

const intents = ["GUILDS", "GUILD_INVITES", "GUILD_MEMBERS"];
const partials = ["USER", "GUILD_MEMBER"];

const client = new Discord.Client({
  intents,
  partials,
});

new InviteTracker(client);

client.on("guildMemberAddWithInvite", (member, invite) => {
  console.log(member.user.tag);
  console.log(invite.code);
});

client.login("token");

Why djs-invite-tracker?

You need to do a lot of things to make the invite tracker and get the invite that the user used to join the server. with this package you only need to import the package and call it and it does the job for you.

Community

You can join our discord server to give us suggestions or reports Discord Server.

Github

You can find the source code on Github.