Discord icon

Discord

Interact with Discord API - users, messages, webhooks, guilds, interactions, and more

Actions193

Guild → Get Prune Count

AI-generated

Summary

Gets Discord’s prune count for a guild, using the configured number of inactive days and optional role filters.

Inputs

  • Authentication — Choose a bot token (the default) or an OAuth2 user token.
  • Guild (required) — The Discord guild ID.
  • Days — Number of days for the prune count, from 1 to 30; defaults to 7.
  • Include Roles — Comma-separated role IDs to include in the count.
  • Request Options — Optional batching, SSL certificate handling, proxy, and timeout settings.

Output shape

A single Discord API response record containing the prune count.

The source pack does not include the Guild module’s implementation body, so the exact response fields and authentication behavior cannot be confirmed from source.

Links

Discussion