Need to kick inactive Discord members who:

  • Have a role(s) assigned
  • Joined and never said hi (lurkers)
  • Or stopped posting/replying to messages after x-amount of days

Below I walk you through how to carry this out for free—with bots. I ran a public Discord server while going after my CCNA. Folks from various countries attended the virtual study groups I held. Even Jeremy Cioara popped in once. People joined the server and went inactive after passing their exam or because—life.

Virtual CCNA Study Session
Jeremy Cioara from CBT Nuggets pops into our virtual CCNA Study Session
Google was not my friend on this day

Tons of posts tell you how to use the Prune feature. But this does not work for members assigned a role. And you have to click stuff. After trial and error, I found the right bot and custom workflow.

How to Kick Inactive Discord Members [automagically]

1. Invite Statbot to your server

Kick Inactive Discord Members

2. Select the server to invite Statbot to and uncheck the ADMINISTRATOR PERMISSIONStatbot to your server

Kick Inactive Discord Members Step 2

3. Open Statbot’s Dashboard for your server

Kick Inactive Discord Members Step 3

4. Click on the MANAGE at the top-right of the page.

Kick Ghosts Step 4

5. Click on STATROLES at the bottom-left of the page.

Kick Ghosts Step 5

6. Click on +ADD at the top-right of the page.

Kick Ghosts Step 6

7. Create the role to GRANT server access to New Members

Kick Ghosts Step 7

The settings I use:
  • Role: Select the server role you want to be granted to New Members
  • Stat Type: Message
  • Limit Type: Threshold
  • Minimum: 1
  • Maximum: [empty]
  • Lookback [days]: 1
  • Filter Channels?: Yes
  • Filter Type: Whitelist
  • Select Channels: Select the channel you have new members message on

8. Create the role to REMOVE server access from Inactive Members

Kick Ghosts Step 8

The settings I use:
  • Role: Select the server role you want to be removed from inactive Members
  • Stat Type: Message
  • Limit Type: Threshold
  • Minimum: [set the number of messages you consider to be active participation]
  • Maximum: [empty]
  • Lookback [days]: 30 [month timeframe]
  • Filter Channels?: Yes
  • Filter Type: Blacklist
  • Select Channels: Select the channel you have new members message on

Originally published Aug 25, 2020, updated Sep 13, 2021