InviteCreate not working fully
The InviteCreate event only fired when the invite is created withing a channel, and not within the guild itself
8 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.Node v18.8.0, djs v 14.0.3
to clarify: https://bork.treble-is-fluffy.gay/floofb746.png
this works
but this doesnt
it doesnt even fire the InviteCreate event
i have the intents enabled
yes
it has admin perms
yes
lemme try in another guild just to be sure
I found the culprit, when making an invite, it takes the top channel, which was a forum channel in this case and that seems to have broken it since it works fine when i deleted the forum channel
its weird because it definetly is a new invite code
chances could be that i dont have the guild and invite cached but i always use fetch()
thats what i was wondering too
so i have no clue why it does that
i can try to remove all my invites and retry again
deleted all my invites and retried, still nothing with forum channel
i'll get my code
the
const c = await invite.guild.channels.fetch("1020287116439199824")
cant be causing it because i just get no event at all
i tried logging the invite or event name
method to add an invite to my database
but it works fine
the empty space after execute() used to be console.log(invite)
sorry if my explanation is kinda unclear, i'm pretty bad at explaining stuff like this
ah
that would indeed explain it
alright thanks!