Skip to content

Instantly share code, notes, and snippets.

View SilBoydens's full-sized avatar

Sil Boydens SilBoydens

  • belgium
View GitHub Profile
@SilBoydens
SilBoydens / kick inactive members.js
Created July 18, 2019 17:02
kick inactive members from a discord server
/* jshint esversion: 6 */
/** kicks all members from your discord sever who's last messages is more then 30 days ago or joined more then 30 days ago and havent' send a message yet
* replace "YOUR_BOT_TOKEN_HERE" with the token of your bot
* replace "GUILDID" with the ID of your guild
* if you only want to kick inactive members from a certain role, then use the line that includes the .roles.get( and repalce the ROLEID wiht the ID of that role
* to start, enter these 2 commands:
* npm install discord.js
* node 'kick inactive members.js'
* let this run for a hour or so, it takes a while to kick a lot of members
*/