dashboard

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}

Request

  • Base URL
    https://api.monni.fyi (the document declares no server; this is the origin it was published from)
  • URL
    https://api.monni.fyi/dashboard/bot/settings/{guild_id}/automod/rules/{rule_id}
  • Auth
    HTTP bearer

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

    • info

      added the new optional request property /

    • info

      added the optional property / to the response with the status

    • info

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

    • info

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