Mac
DIAdiscord.js - Imagine an app
•Created by Mac on 10/3/2024 in #djs-questions
Embedded Platform
Discord has decided that it will be a good thing to not document the Embedded platform which infact is PS4 (and more but unsure)
Would there be any possibility that this gets removed from Discord.js as this is undocumented by discord though I am unsure as to why they show me and not document it?
22 replies
DIAdiscord.js - Imagine an app
•Created by Mac on 8/13/2024 in #djs-questions
Debug Undici
so discord.js uses undici on the backend and I've been having connection issues so I want to debug it.
I've added a startup flag of
NODE_DEBUG=undici
my .env
but nothing logs. I can only assume I'm either doing it incorrectly or I need to use undici myself and not how it's used by a package (discord.js)
Can anyone assist me with this?
I've been having too many of those UND_ERR_CONNEFT_TIMEOUT so I want to see what is exactly causing it and stuff. I know it's network related so I want to debug7 replies
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 does not work as intended.
My code:
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