Ashu
DIAdiscord.js - Imagine an app
•Created by Ashu on 11/30/2023 in #djs-questions
Is having too many awaitMessageComponent/createMessageComponentCollector bad?
Hey, I have a Discord bot with around 50k guilds.
It is a verification bot. I use awaitMessageComponent/createMessageComponentCollector to mostly handle multiple steps in the verification flow eg: Read Rules, Enter Captcha, Done. So I was wondering is doing it using
client.on(createInteraction, (fun))
is any way better in terms of memory/heap usage?8 replies
DIAdiscord.js - Imagine an app
•Created by Ashu on 7/13/2023 in #djs-questions
Modifying internal functions
Is it safe to modify any Discord.js function to add my own code before and after the execution.
Example:
5 replies
DIAdiscord.js - Imagine an app
•Created by Ashu on 7/5/2023 in #djs-questions
Getting Gateway Ratelimited.
154 replies
DIAdiscord.js - Imagine an app
•Created by Ashu on 11/30/2022 in #djs-questions
Shard limit per machine?
The bot is showing as offline in some guilds and online in most of them. It's sharded. Is there a sharding limit or something? I have like 10-12 shards
8 replies
DIAdiscord.js - Imagine an app
•Created by Ashu on 10/27/2022 in #djs-questions
Unknown Webhook Token
why is it that my bot just randomly starts error-ing with "Unknown Webhook Token"?
Even tho I am just replying to
interactionCreate
event. Which should not have expired in 15 mins.
This usually happens after many hours of running and lots of people are using the bot at the same time. And when this does happen everything just breaks. Can't even send a normal button click reply. But as soon as I restart, it fixes it.2 replies
DIAdiscord.js - Imagine an app
•Created by Ashu on 9/26/2022 in #djs-questions
Slash command options limit
What is the limited number of options I can ask from a user using slash commands?
3 replies
DIAdiscord.js - Imagine an app
•Created by Ashu on 8/14/2022 in #djs-questions
How to filter permissions based to the usage?
I want to filter permissions based on the usage.
Example:
Permission.FLAGS
has all the permissions for a guild. but if I am trying to set a channel override how can I only get permissions applicable to that channel?
So like ADMINSTRATOR
don't make sense for channel override.4 replies
DIAdiscord.js - Imagine an app
•Created by Ashu on 8/13/2022 in #djs-questions
How to give Manager Permission Override to a user?
6 replies
DIAdiscord.js - Imagine an app
•Created by Ashu on 8/9/2022 in #djs-questions
Accessing a property from each shard.
How do I access an external property from each shard. Example: An array that can have different data on different shards. How do I get access to that array from each shard?
13 replies
DIAdiscord.js - Imagine an app
•Created by Ashu on 8/8/2022 in #djs-questions
Select a default value for Select Menus
How can I select a default value for Select menus just like a Modal Text Field?
5 replies
DIAdiscord.js - Imagine an app
•Created by Ashu on 7/27/2022 in #djs-questions
Members didn't arrived in time.
why do I get this error sometimes when I try to fetch selective members?
85 replies
DIAdiscord.js - Imagine an app
•Created by Ashu on 7/20/2022 in #djs-questions
PM2 Configuration File for Sharded bot
How can I create an auto restart config in PM2 for Sharded bot?
Will this work?
The problem is when the main process crashes for some reason, The shards keeps running independently.
5 replies
DIAdiscord.js - Imagine an app
•Created by Ashu on 7/20/2022 in #djs-questions
How to exit all shards and main process?
Hey, I am trying to make a console command that exits all shards and main process but
process.exit(0)
only exits main process.3 replies
DIAdiscord.js - Imagine an app
•Created by Ashu on 7/5/2022 in #djs-questions
What hash discord use when providing Image Hashes.
I am trying to find that what hashing does discord use to hash avatar images.
2 replies