discord_prune_members
Prune members inactive for a set number of days. Preview the count with dry run, then confirm to remove irreversibly.
Instructions
Remove members who have been inactive (no roles, not seen) for a number of days. SAFE BY DEFAULT: dry_run is true unless explicitly set to false, so call it first to preview the count, then re-call with dry_run:false to actually remove them. Removal is irreversible (members must rejoin). Requires the Kick Members permission.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guild_id | Yes | Discord server (guild) ID (snowflake). | |
| days | Yes | Inactivity threshold in days (1–30). | |
| roles | No | Optional role IDs (snowflakes) to include; by default only members with no roles are counted. | |
| dry_run | No | If true (default), only returns the count that would be pruned without removing anyone. Set false to actually prune. | |
| reason | No | Optional reason recorded in the server audit log. |