Mac
Mac
DIAdiscord.js - Imagine an app
Created by Mac on 11/11/2023 in #djs-questions
slow deferUpdate
So I have been doing quite some debugging to increase my command speed and I noticed that await interaction.deferUpdate() takes 300-500ms for me even though my ping to the ws is around 20. Is that an expected range I'm meant to look at or is that too high? Is there any ways to reduce this?
14 replies
DIAdiscord.js - Imagine an app
Created by Mac on 10/24/2023 in #djs-questions
Emoji order not being followed
So I've been having this issue where reacting using
await message.react(emoji)
await message.react(emoji)
does not work as intended. My code:
for (const personReaction of reactions[personName].emojis) await message.react(personReaction)
for (const personReaction of reactions[personName].emojis) await message.react(personReaction)
I'm reacting with 3 emojis and everything reacts in the order I want it to in development but ONLY in the guild the emojis are added in. The minute I try it in a different guild, the order is messed up? I don't enter what's causing this issue. My guess was that it's latency but that doesn't affect it at all. My second guess was that the emoji wasn't cached properly and takes time to resolve in different guilds but im unsure. Please let me know if there's anything you can help me with. I will say that my code is proper and it's not the code but more of either discord or caching.
36 replies
DIAdiscord.js - Imagine an app
Created by Mac on 5/16/2023 in #djs-questions
Cache Customisation
So ideally I wanted some help with caching customisation. I noticed that djs caches a TON of stuff that I don't even need. I just wanted to get some support on the proper way to actually cache stuff. Just to keep it simple, the only thing I need would be guilds size and member count which is taken from the guilds cache itself. How would I go about getting rid of everything else that's less important?
26 replies
DIAdiscord.js - Imagine an app
Created by Mac on 4/29/2023 in #djs-questions
Sharding support
Two questions: Is djs internal sharding good as the sharding manager or not? What are the differences? Is it possible to see how many shards are spawned by djs on the "shards: 'auto'" option?
10 replies
DIAdiscord.js - Imagine an app
Created by Mac on 4/18/2023 in #djs-questions
DJS Caching Support
176 replies
DIAdiscord.js - Imagine an app
Created by Mac on 10/18/2022 in #djs-questions
Failed to find guild, or unknown type for channel
Hey! My bot usually never took this long to startup however as of lately (a week), its been taking long enough to start up and hence why I did some debugging.
46 replies
DIAdiscord.js - Imagine an app
Created by Mac on 7/11/2022 in #djs-questions
Discord command option lengths
Has this been released?
9 replies