#mass Kicking users

36 messages · Page 1 of 1 (latest)

idle grove
#

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

young coral
#

• 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.

brave bobcat
#

yeah, rate limits

idle grove
#

That’s what I mean by staggering

#

Only kicking one account every so often over a set period of time

languid wind
#

Can't you just prune members?

idle grove
#

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

north kite
#

this does sound a bit like api-spam though so im not exactly sure what a solution could look like for you

idle grove
#

I’m just concerned about getting my actual account banned for kicking so many users with a bot

north kite
#

Try checking the discord docs

limpid compass
#

why not just create an entirely new server using a template from this one?

vivid hinge
#

man its simple

#

just use await

#

no rate limit

#

u kick only when the api is available

idle grove
#

Im not worried about the ratelimits

#

I can manage that on my own

vivid hinge
#

whatchu need then

idle grove
#

im just worried about discord seeing a bunch of KICK commands being fired from a single bot and banning me for "nuking" the server

vivid hinge
#

uh

#

my bot is in a 200k + partner server

#

and i've kicked more than 500 members in a single antiraid cmd

idle grove
#

Fair enough, but its also a verified bot

vivid hinge
#

no

#

its not

#

its only in that server

#

i mean tbh idk the consequences... just saying what i have and have not experienced

scarlet reef
rapid basin
# idle grove Fair enough, but its also a verified bot

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`
rapid basin