Plans

Purge messages

v1
By MEE6
A purge command

Prompt

Add a /purge command, restricted to the @Staff role, that deletes the last N messages of the channel and confirms privately how many it removed

What else does it do?

Bulk delete messages in a channel, restricted to staff.

Usage: /purge count:50

Requirements:

  • Set the Staff role in settings (who can use this command)
  • Only members with that role can purge messages
  • Count must be between 1 and 100

How it works:

  1. Staff member runs /purge with a count
  2. The bot deletes that many recent messages (skips those older than 14 days)
  3. Replies privately with how many were actually removed

The reply is ephemeral (only visible to you), so it doesn't clutter the channel.

Commands it adds

  • /purge
    Delete recent messages

Made by MEE6. Remix it to get a copy of your own and change anything you like.

Sandbox · nothing here touches your serverv1
Test server
Text channels
Voice channels
Testing as
#general

Welcome to #general!

This is the start of the #general channel.

Runor type below