neon
Explore posts from serversSIASapphire - Imagine a framework
•Created by neon on 4/4/2024 in #sapphire-support
What's the point of having a "container" object exported which consists of client and other stuff?
What I found kind of unique in sapphirejs is that it uses an object called
container
which consists of client, stores, etc. But how is that better than just exporting client and stores directly? For example, instead of using this.container.client
in command classes, why is not better to just use this.client
?11 replies
SIASapphire - Imagine a framework
•Created by neon on 3/27/2024 in #sapphire-support
Are my slashcommands guild based or global?
13 replies
DIAdiscord.js - Imagine a boo! 👻
•Created by neon on 10/7/2023 in #djs-questions
Return type of "cdn.discordapp.com/avatars/id/hash"
Does the module
discord-api-types
provide the type of return for cdn.discordapp.com/avatars
route?2 replies
DIAdiscord.js - Imagine a boo! 👻
•Created by neon on 10/17/2022 in #djs-questions
Is it possible for a bot so send a message before it goes offline?
I am just wondering, can I make it so my bot sends a "Going Offline" message right before it becomes offline? Seems unlikely to be a thing but I've seen it in some bots.
3 replies
DIAdiscord.js - Imagine a boo! 👻
•Created by neon on 9/17/2022 in #djs-questions
Is there any difference between IntentsBitField.Flags and GatewayIntentBits?
Hey! So I noticed that we have two options to add intents to the client as mentioned in the title. I am just wondering is there any difference between 'em?
4 replies
DIAdiscord.js - Imagine a boo! 👻
•Created by neon on 7/29/2022 in #djs-questions
Is there an API for the Docs that I can fetch data from?
Hello! I've recently noticed that some of the bots have commands to get information from the docs. So is there an API that they are using to get the data? How to I get access to it too?
2 replies
DIAdiscord.js - Imagine a boo! 👻
•Created by neon on 7/24/2022 in #djs-questions
What's the type for 'SlashCommandBuilder' in Typescript?
I am using typescript, trying to create an interface for my commands. I used
SlashCommandBuilder
as a type for data which contains the builder stuff. But it doesn't accept the type... what should I do?2 replies
DIAdiscord.js - Imagine a boo! 👻
•Created by neon on 7/12/2022 in #djs-questions
What's the difference between users.fetch() and users.cache.get()?
I was just wondering, what is the difference between "<client>.users.fetch()" and "<client.users.cache.get()>"?
8 replies
DIAdiscord.js - Imagine a boo! 👻
•Created by neon on 7/10/2022 in #djs-questions
Not an error, but what's a 'SubcommandGroup' in slash command builder??
Hey! Glad to see you here! I just wanted to know what a "SubcommandGroup" is from the @discordjs/builders module. I just wanna the difference between a group and a normal subcommand. I appreciate every sentence about it!
7 replies