Guild Create and Guild Delete only

Hello, is there a way to get only the guild create/guild delete events? I don't need all the other events because I'm using interaction endpoints, and I would like to receive only those two events without the others since I'm using a VPS with a small connection for a bot that is on many servers.
5 Replies
d.js toolkit
d.js toolkit7d ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
TÆMBØ
TÆMBØ7d ago
Intents dictate which events & data you receive, so with that you'd only need to subscribe to the Guilds intent to receive those two events. Just don't subscribe to other intents and you won't receive events related to that intent
d.js docs
d.js docs7d ago
:discord: Gateway - Gateway Intents > List of Intents Below is a list of all intents and the Gateway events associated with them. Any events not listed means it's not associated with an intent and will always be sent to your app. read more
TÆMBØ
TÆMBØ7d ago
Though looking at it, there's not really a way to not receive those other events that are listed under the Guilds intent (which I assume was your actual inquiry)
William
William7d ago
Alright, thank you for your response. I will see what I can do