Iced Queen
Iced Queen
DIAdiscord.js - Imagine an app
Created by Iced Queen on 11/2/2024 in #djs-questions
Stats command returning wrong member count after X hours
Ty
41 replies
DIAdiscord.js - Imagine an app
Created by Iced Queen on 11/2/2024 in #djs-questions
Stats command returning wrong member count after X hours
41 replies
DIAdiscord.js - Imagine an app
Created by Iced Queen on 11/2/2024 in #djs-questions
Stats command returning wrong member count after X hours
I replied to your message 🤦‍♀️
41 replies
DIAdiscord.js - Imagine an app
Created by Iced Queen on 11/2/2024 in #djs-questions
Stats command returning wrong member count after X hours
I mean it's kinda common politeness to then say you don't instead of ignoring, but okay
41 replies
DIAdiscord.js - Imagine an app
Created by Iced Queen on 11/2/2024 in #djs-questions
Stats command returning wrong member count after X hours
@Qjuh sorry for the ping but do you have any ideas for it?
41 replies
DIAdiscord.js - Imagine an app
Created by Iced Queen on 11/2/2024 in #djs-questions
Stats command returning wrong member count after X hours
Any ideas?
41 replies
DIAdiscord.js - Imagine an app
Created by Iced Queen on 11/2/2024 in #djs-questions
Stats command returning wrong member count after X hours
Uh I’m not sure. I wasn’t the one to set up the Linux server and pm2. But whenever I get an error, it always goes in the error file. Like whether it’s a TypeError, ReferenceError or a Discord error
41 replies
DIAdiscord.js - Imagine an app
Created by Iced Queen on 11/2/2024 in #djs-questions
Stats command returning wrong member count after X hours
Goes when I get errors, they go in my error file? I’m not sure what you’re asking 😅 I run my bot on a Linux server and use pm2, and there are 2 logging files, one for just logs and one for error logs. Console.error throws them in the error log file. And it’s been doing so correctly for many many months 😅
41 replies
DIAdiscord.js - Imagine an app
Created by Iced Queen on 11/2/2024 in #djs-questions
Stats command returning wrong member count after X hours
.log goes to my log file, .error goes to my error file 😅
41 replies
DIAdiscord.js - Imagine an app
Created by Iced Queen on 11/2/2024 in #djs-questions
Stats command returning wrong member count after X hours
Actually error logs do go to a separate file and there isn’t anything there
41 replies
DIAdiscord.js - Imagine an app
Created by Iced Queen on 11/2/2024 in #djs-questions
Stats command returning wrong member count after X hours
Could it be a caching issue? Do I need to client.members.fetch() every 2 hours or something to keep the cache up to date? Or could it be something else
41 replies
DIAdiscord.js - Imagine an app
Created by Iced Queen on 11/2/2024 in #djs-questions
Stats command returning wrong member count after X hours
Server Count: 34,792 Member Count: 26,592 Shard Count: 35 Shards Online: 35 Ruling out offline shards
41 replies
DIAdiscord.js - Imagine an app
Created by Iced Queen on 11/2/2024 in #djs-questions
Stats command returning wrong member count after X hours
Looks correct on prod bot as well :)) Shard Count: 35 Shards Online: 35 I'll come back to this post when it gives the wrong member count again and be able to tell if a shard is offline
41 replies
DIAdiscord.js - Imagine an app
Created by Iced Queen on 11/2/2024 in #djs-questions
Stats command returning wrong member count after X hours
Good catch, thank you 😄
41 replies
DIAdiscord.js - Imagine an app
Created by Iced Queen on 11/2/2024 in #djs-questions
Stats command returning wrong member count after X hours
Ahh yeah, on my test bot it returned [ true ]
41 replies
DIAdiscord.js - Imagine an app
Created by Iced Queen on 11/2/2024 in #djs-questions
Stats command returning wrong member count after X hours
Oooh, so
client.shard.broadcastEval(async c => await c.guilds.cache.first().members.fetch({ user: c.user, limit: 1 })
.then(() => true)
.catch(() => false))
client.shard.broadcastEval(async c => await c.guilds.cache.first().members.fetch({ user: c.user, limit: 1 })
.then(() => true)
.catch(() => false))
41 replies
DIAdiscord.js - Imagine an app
Created by Iced Queen on 11/2/2024 in #djs-questions
Stats command returning wrong member count after X hours
I do that inside the .then? Before I reassign responsiveShards
41 replies
DIAdiscord.js - Imagine an app
Created by Iced Queen on 11/2/2024 in #djs-questions
Stats command returning wrong member count after X hours
TypeError: results[2].filter is not a function
41 replies
DIAdiscord.js - Imagine an app
Created by Iced Queen on 11/2/2024 in #djs-questions
Stats command returning wrong member count after X hours
It errors if I use filter tho
41 replies
DIAdiscord.js - Imagine an app
Created by Iced Queen on 11/2/2024 in #djs-questions
Stats command returning wrong member count after X hours
Because results[2] would be either "true" or "false"
41 replies