Lolo
Lolo
Explore posts from servers
DIAdiscord.js - Imagine an app
Created by Lolo on 2/27/2024 in #djs-questions
Client disconnects after ready, takes 1-2 minutes to reconnect every time
The full debug log is attached below After restarting my Bot I get a ready, then all shards seemingly disconnect and after 1-2 minutes reconnect Is there a simple answer to this behavior, like "it's normal on some clients" or "definitely caused by x"? Just wanna see if there's a known answer before I start taking my code apart and exhausting my daily logins. Comprehensive order of events as outlined by the debug log: - Ready - Shards send the first heartbeat - Shards Destroyed - "Connection status during destroy" - Connecting to WS - Waiting for Hello - Reconnect - Preparing Heartbeat - Identifying - Waiting for ready - Ready - Heartbeats start Node ver: 21.2.0 Djs Ver: 14.14.1
5 replies
DIAdiscord.js - Imagine an app
Created by Lolo on 1/16/2024 in #djs-questions
Set Presence on Identify per shard using internal sharding?
Is there a way to set a different presence on different shards when using internal sharding?
18 replies
DIAdiscord.js - Imagine an app
Created by Lolo on 11/1/2023 in #djs-questions
[TS] Nodemon x ShardingManager never emits ready
As stated above, using nodemon with Djs sharding manager never emits ready for any of the shards. The Debug Event does not emit anything dev script: npx nodemon ./src/index.ts package.json https://github.com/AyakoBot/Ayako-v2/blob/main/package.json nodemon.json https://github.com/AyakoBot/Ayako-v2/blob/main/nodemon.json tsconfig.json https://github.com/AyakoBot/Ayako-v2/blob/main/tsconfig.json index.ts https://github.com/AyakoBot/Ayako-v2/blob/main/src/index.ts D.js v14.13.0 Node v20.4.0
10 replies
DIAdiscord.js - Imagine an app
Created by Lolo on 6/14/2023 in #djs-questions
Why use @discordjs/broker rather than node-redis-pubsub?
I can imagine there being a benefit for discord.js-based applications, but i'm not sure what it is
4 replies
DIAdiscord.js - Imagine an app
Created by Lolo on 2/1/2023 in #djs-questions
webhookUpdate event not received
I seem to be unable to receive the webhookUpdate event https://discord.js.org/#/docs/discord.js/main/class/Client?scrollTo=e-webhookUpdate My client intents have Discord.IntentsBitField.Flags.GuildWebhooks listed and I'm listing all received events. webhookUpdate is not one of them
9 replies