Hey there, I am an admin on a large server that has unfortunately died, the server has around 1000 members but only around 50 or so are actually active. The owner has instructed me to make a bot to kick all inactive users, I made the plan of having a button that can be clicked that will add your user-if to the “Do Not Kick” List on the bot. I’m curious if there would be any repercussions on my account from using a bot under my dev-profile to kick the ~900+ members if I stagger the kicking to like one user ever 3-5 seconds. I just wanna make sure that I don’t get my account terminated
#mass Kicking users
36 messages · Page 1 of 1 (latest)
• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.
yeah, rate limits
That’s what I mean by staggering
Only kicking one account every so often over a set period of time
Can't you just prune members?
Pruning for some reason is only kicking members that have been offline for a certain period of time
Say 7 or 30 days
Plus the owner kinda just wants to limit the Amount of members to be a friend group as the server is so dead
afaik djs handles rate limits
this does sound a bit like api-spam though so im not exactly sure what a solution could look like for you
I’m just concerned about getting my actual account banned for kicking so many users with a bot
Not entirely sure, don’t think so but again I’m not sure
Try checking the discord docs
why not just create an entirely new server using a template from this one?
look
man its simple
just use await
no rate limit
u kick only when the api is available
whatchu need then
im just worried about discord seeing a bunch of KICK commands being fired from a single bot and banning me for "nuking" the server
uh
my bot is in a 200k + partner server
and i've kicked more than 500 members in a single antiraid cmd
Fair enough, but its also a verified bot
no
its not
its only in that server
i mean tbh idk the consequences... just saying what i have and have not experienced
if you wait a good amount of time before banning someone else i dont think it will be a problem, it could take hours/days tho since we're talking about ~950 members to kick if 50 members are active
The rate limit for kicking users on Discord is not publicly disclosed, and it can vary depending on the specific server, shard and discord situation. However, based on my observations, with 80+ shards and 80K+ servers, it seems that a safe estimate would be around 5-10 kicks per minute.
It's important to note that, while this may be an acceptable rate of kicking users, it is still best practice to use caution and not kick a large number of users in a short period of time, as it may be flagged as abuse by Discord.
You can additionally depend on the header returned by by discord
https://discord.com/developers/docs/topics/rate-limits#header-format-rate-limit-header-examples
for this specific task
Discord Developer Portal
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
X-RateLimit-Limit: 5
X-RateLimit-Remaining: 0
X-RateLimit-Reset: 1470173023
X-RateLimit-Reset-After: 1
X-RateLimit-Bucket: abcd1234```
The idea would be to do kicks until the limit goes to 0 then schedule next set of kicks after `X-RateLimit-Reset`
One can safely (if ratelimits handled perfectly) do around ~6000-8000 kicks in 24 hours