Discord icon

Discord

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

Actions193

Auto Moderation → Delete Rule

AI-generated

Summary

Deletes an auto moderation rule from a Discord guild using the guild and rule IDs. Optionally adds a reason to the guild audit log; the request uses Bot Token authentication by default.

Inputs

  • Authentication — Choose Bot Token (default) or OAuth2 (User Token).
  • Guild (required) — Discord guild snowflake ID containing the rule.
  • Rule (required) — Discord snowflake ID of the auto moderation rule to delete.
  • Audit Log Reason — Optional reason recorded in the guild audit log; Discord limits it to 512 characters.
  • Request Options — Optional request settings for batching, SSL certificate validation, proxy, and timeout.

Output shape

A single response item from the Discord API.

The operation sends a delete request for the specified guild rule. The provided source view does not show the response mapping or whether the API returns a body.

Links

Discussion