ReactiveTurtle🌸🥀
ReactiveTurtle🌸🥀
DIAdiscord.js - Imagine an app
Created by ReactiveTurtle🌸🥀 on 4/22/2025 in #djs-questions
How does CachedManager work?
Thanks a lot for you)) You confirmed my guess. ❤️
20 replies
DIAdiscord.js - Imagine an app
Created by ReactiveTurtle🌸🥀 on 4/22/2025 in #djs-questions
How does CachedManager work?
I know where to get the answer, but thanks. Above is my screenshot from discord.js repository that I'm viewing) But the question remains. For example, if an Interaction event occurred with a Slash command being called or a button was pressed, where does the guild in interaction come from? Is this the new GuildManager, with new сache, or is it taken from the one saved in the Client.guilds?
20 replies
DIAdiscord.js - Imagine an app
Created by ReactiveTurtle🌸🥀 on 4/22/2025 in #djs-questions
How does CachedManager work?
Sorry about this text. I think it's a little rude.
20 replies
DIAdiscord.js - Imagine an app
Created by ReactiveTurtle🌸🥀 on 4/22/2025 in #djs-questions
How does CachedManager work?
A strange answer. In other words, I will never need to ask questions here at all, and there will be no point in talking to support. I ask a question expecting to get a relatively quick answer from someone who already knows the answer, so as not to waste time on a long study. Thanks
20 replies
DIAdiscord.js - Imagine an app
Created by ReactiveTurtle🌸🥀 on 4/22/2025 in #djs-questions
How does CachedManager work?
For example, if an Interaction event occurred with a Slash command being called or a button was pressed, where does the guild in interaction come from? Is this the new GuildManager, with new сache, or is it taken from the one saved in the Client.guilds?
20 replies
DIAdiscord.js - Imagine an app
Created by ReactiveTurtle🌸🥀 on 4/22/2025 in #djs-questions
How does CachedManager work?
Does the cache live while the Client object lives?
20 replies
DIAdiscord.js - Imagine an app
Created by ReactiveTurtle🌸🥀 on 4/22/2025 in #djs-questions
How does CachedManager work?
No description
20 replies
DIAdiscord.js - Imagine an app
Created by ReactiveTurtle🌸🥀 on 4/22/2025 in #djs-questions
How does CachedManager work?
I understand. But I do not know how they are cached. If I do
(await guild.members.fetch()).get(memberId)
(await guild.members.fetch()).get(memberId)
instead of
guild.members.cache.get(memberId)
guild.members.cache.get(memberId)
then in the first case the data is taken directly from discord without cache? Or not?
20 replies