Skip to content

Instantly share code, notes, and snippets.

View icourt's full-sized avatar
💭
Student Developer

icourt icourt

💭
Student Developer
View GitHub Profile
@icourt
icourt / 1ready.js
Last active September 16, 2021 01:58
How to create a DiscordJS Invite Tracker
// Welcome to my gist! This is how you can create an invite tracker using JavaScript and Discord.JS!
// First we are going to statt off in our ready event.
// Create a new Collection called guildInvites and add it to your client
// client is the new Client you created in your main file. If you're using an event handler, make sure to pass the client into this file.
const { Collection } = require("discord.js");
// Collection is an enhanced Map which we are going to save our invites to.
const guildInvites = new Collection();
client.invites = guildInvites;