dashboard

Save Rule

Create or update one rule. rule_id is client-supplied for a new rule ("new" asks the server to mint one), which keeps the dashboard from having to round-trip before it can render the row.

put/dashboard/bot/settings/{guild_id}/automod/rules/{rule_id}

Path parameters

guild_idinteger required
rule_idstring required

Request body

rule_idstring nullable
check_type'spam' | 'repeat' | 'mentions' | 'attachments' | 'links' | 'words' | 'channel_spam' | 'emoji' | 'lines' | 'caps' | 'zalgo' | 'polls' | 'spoilers' required

The configurable checks a guild can use.

namestring required
enabledboolean
order_byinteger
settingsobject
actionsobject[]

Response

Successful Response

rule_idstring nullable
check_type'spam' | 'repeat' | 'mentions' | 'attachments' | 'links' | 'words' | 'channel_spam' | 'emoji' | 'lines' | 'caps' | 'zalgo' | 'polls' | 'spoilers' required

The configurable checks a guild can use.

namestring required
enabledboolean
order_byinteger
settingsobject
actionsobject[]

Changes

Changed in 2 of the 7 revisions of this API.3

    • ○

      added the optional property // to the response with the status

      response-optional-property-added

    • ○

      added the optional property // to the response with the status

      response-optional-property-added

    This revision also has 8 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • ○

      endpoint added

      endpoint-added

    This revision also has 12 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog