Discord.JS v12 Invite Link Tracker Tutorial

preview_player
Показать описание
In this tutorial, we're going to implement an invite link tracker. Every time a user joins, it will send a message displaying the member count, as well as the invite link the user joined with, and the creator of the invite link.

Рекомендации по теме
Комментарии
Автор

You gained another subscriber!!!!
Keep it up!

glitch
Автор

If you are using discord.js v13, be sure to pass the option { cache: false } to the invites.fetch method.

fagnersales
Автор

I was at 7 minutes and 3 seconds (7:03) and I can't get past this. I run the code and everything is fine, I invite someone to the channel, but I don't get any errores on console, neither crashes the bot, neither writes on the console the messa that the code was used. Can you help me with this problem please? Thanks for your time.

afonsopinto
Автор

Uhm so you are checking if the channel name is welcome or it's a text channel so it's finding the first text channel and tryna post it there I'm pretty sure you should have used && and not ||

albertas
Автор

can not read property of get after cachedInvites

supreme-erg
Автор

there is one thing, that when someone created a link that only for one user, the invite link/code will delete, if the invite link is not there the bot will not work. So you have to change the error message with the same embed but without the usedInvite.inviter instad type there Unknown

DevMoeH
Автор

how to skip guilds who dont give permission to the bot ;/ spaming missing permission

gokselwz
Автор

reason of the failure with the welcome is because you put || instead of && i believe

mikasad
Автор

Using or to check if it's a text channel? It should be using && not ||

jackmasseywelsh
Автор

cannor read the property forEach because i'm using the v 11 of node but can you tell what I have to write instead of this ?

kurobane_sama
Автор

Hi, I would like to know how I could do this but when the user leaves the server, I would like to get the invite he used to be on the server. Hope it's possbile! Thank you to you ^^

ForWarZz
Автор

TypeError: Cannot read property 'get' of undefined
at
const usedInvite = newInvites.cache.get(inv => < inv.uses);

safinzaman
Автор

now it's broken can you repair that pls

erwan
Автор

pls help tehere are objects no defined

leonardoollero
Автор

Does anyone has a tutorial to do this on python? Thanks

jugertmucoimaj
join shbcf.ru