Amir
DIAdiscord.js - Imagine a bot
•Created by Amir on 6/7/2024 in #djs-questions
How do I know which gateway intents I need for a certain event in Discord.js?
How do I know which gateway intents I need for a certain event in Discord.js? For instance, if I want my bot to respond to the "messageCreate" event, how can I find out which gateway intents are necessary?
10 replies
DIAdiscord.js - Imagine a bot
•Created by Amir on 6/5/2024 in #djs-questions
Simplifying the API request process
This code works well, but can we streamline it further? Currently, we specify the channelId separately from the request body. Is there a way to combine all required parameters into one object, like this?
19 replies
DIAdiscord.js - Imagine a bot
•Created by Amir on 6/5/2024 in #djs-questions
Simplifying API Requests
Here's the code I'm using:
It works well, but I have one question: Is there a way to send requests without specifying the method? I'd like to just send requests to the endpoint without specifying the method each time.
9 replies