1.0.3 • Published 2 years ago

djs-invite-tracker v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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.

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago