NyR
NyR
DIAdiscord.js - Imagine an app
Created by ReactiveTurtle🌸🥀 on 4/22/2025 in #djs-questions
How does CachedManager work?
There's only one GuildManager, which is client.guilds
20 replies
DIAdiscord.js - Imagine an app
Created by ReactiveTurtle🌸🥀 on 4/22/2025 in #djs-questions
How does CachedManager work?
To answer your question, no it's not a new manager, all guilds are cached with guilds intent in the GuildManager (which is instantiated with the Client constructor) and guilds are taken from this manger upon interaction
20 replies
DIAdiscord.js - Imagine an app
Created by ReactiveTurtle🌸🥀 on 4/22/2025 in #djs-questions
How does CachedManager work?
I'm not sure how my answer is strange. I pointed out where you can get your answers in the future directly instead of waiting on someone who may or may not know the answer. But ok
20 replies
DIAdiscord.js - Imagine an app
Created by ReactiveTurtle🌸🥀 on 4/22/2025 in #djs-questions
How does CachedManager work?
If you are curious about these stuff, you can always check the source code
20 replies
DIAdiscord.js - Imagine an app
Created by ReactiveTurtle🌸🥀 on 4/22/2025 in #djs-questions
How does CachedManager work?
It's is taken from client.guilds.cache
20 replies
DIAdiscord.js - Imagine an app
Created by lisekilis on 3/16/2025 in #djs-questions
idiot can't figure out how a (ts) bot project should look like
Also append .toJSON() at the end of the builder
33 replies
DIAdiscord.js - Imagine an app
Created by lisekilis on 3/16/2025 in #djs-questions
idiot can't figure out how a (ts) bot project should look like
You need to export it as a default object, like you did for your example above
33 replies
DIAdiscord.js - Imagine an app
Created by lisekilis on 3/16/2025 in #djs-questions
idiot can't figure out how a (ts) bot project should look like
Yes
33 replies
DIAdiscord.js - Imagine an app
Created by lisekilis on 3/16/2025 in #djs-questions
idiot can't figure out how a (ts) bot project should look like
Same goes for events and such
33 replies
DIAdiscord.js - Imagine an app
Created by lisekilis on 3/16/2025 in #djs-questions
idiot can't figure out how a (ts) bot project should look like
You could look at the example ping command on the template and you can structure you other commands like that
33 replies
DIAdiscord.js - Imagine an app
Created by lisekilis on 3/16/2025 in #djs-questions
idiot can't figure out how a (ts) bot project should look like
The guide is generally meant to help you understand the process of making a discord bot. The script differs because as mark said it was made at different times. What issues are you having with create-discord-bot?
33 replies
DIAdiscord.js - Imagine an app
Created by Tercan on 3/15/2025 in #djs-questions
Multi language Bot
That's the correct approach.
21 replies
DIAdiscord.js - Imagine an app
Created by Tercan on 3/15/2025 in #djs-questions
Multi language Bot
If I understand your issue correctly? You want to deploy commands (names, description) according to language chosen by the server admins or just the responses of the commands?
21 replies
DIAdiscord.js - Imagine an app
Created by Gatti on 3/7/2025 in #djs-questions
Problem with channel fetching
The error could be due to not having ViewChannel permission. Verify bot actually has it. Permissions are implicit on discord, SendMessages will be denied when bot can't see the channel
23 replies
DIAdiscord.js - Imagine an app
Created by Gatti on 3/7/2025 in #djs-questions
Problem with channel fetching
Then you should show your updated code and also the full error you get
23 replies
DIAdiscord.js - Imagine an app
Created by Gatti on 3/7/2025 in #djs-questions
Problem with channel fetching
broadcastEval will run that on all shard though
23 replies
DIAdiscord.js - Imagine an app
Created by Gatti on 3/7/2025 in #djs-questions
Problem with channel fetching
Hence why it is not recommended to fetch channels when sharding
23 replies
DIAdiscord.js - Imagine an app
Created by Gatti on 3/7/2025 in #djs-questions
Problem with channel fetching
Show the full error, the bot may not have permission to view the channel. Also the way you are getting the channel is wrong. The channel will only be cache on the shard that handles it. So for all the other shard, it won't be at that point you try to fetch the channel which will return an actual channel since it returns from the api. Essentially duplicating the send action for all the shard
23 replies
DIAdiscord.js - Imagine an app
Created by Edwards 270P on 2/28/2025 in #djs-questions
Need help with logging system
You can continue to use v13, but know that no help will be provided in that regard. So you are on your own there. It is also never a bad idea to upgrade to the latest version.
19 replies
DIAdiscord.js - Imagine an app
Created by Edwards 270P on 2/28/2025 in #djs-questions
Need help with logging system
You can start from here
19 replies