djs-invite-tracker
v1.0.3
Published
<p align="center"> <a href="https://github.com/subhiashraf912/InviteTracker"> <img src="https://cdn.discordapp.com/attachments/900321704289656872/913816621724876820/Comp_1_00000.png" height="128"> <h1 align="center">Discord Invite Tracker</h1
Downloads
2
Readme
Getting Started
Use this command in your terminal to install the package.
cd project-path
npm i --save djs-invite-tracker
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).init();
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.