Skip to content

Parameters


automod

EditAutoModerationRuleParams dataclass

Bases: Part


              flowchart TD
              scurrypy.params.automod.EditAutoModerationRuleParams[EditAutoModerationRuleParams]
              scurrypy.core.part.Part[Part]

                              scurrypy.core.part.Part --> scurrypy.params.automod.EditAutoModerationRuleParams
                


              click scurrypy.params.automod.EditAutoModerationRuleParams href "" "scurrypy.params.automod.EditAutoModerationRuleParams"
              click scurrypy.core.part.Part href "" "scurrypy.core.part.Part"
            

Parameters for editing an auto moderation rule.

name: OptionalParam[str] = Unset class-attribute instance-attribute

Rule name.

event_type: OptionalParam[AutoModerationEventType] = Unset class-attribute instance-attribute

Event type.

trigger_metadata: OptionalParam[AutoModerationTriggerMetadataPart] = Unset class-attribute instance-attribute

Additional data used to determine whether a rule should be triggered.

Note

Must be the same AutoModerationTriggerMetadataPart child used when the rule was created.

actions: OptionalParam[list[AutoModerationActionPart]] = Unset class-attribute instance-attribute

The actions which will execute when the rule is triggered.

enabled: OptionalParam[bool] = Unset class-attribute instance-attribute

Whether the rule is enabled.

exempt_roles: OptionalParam[list[Snowflake]] = Unset class-attribute instance-attribute

Role IDs that should not be affected by the rule.

exempt_channels: OptionalParam[list[Snowflake]] = Unset class-attribute instance-attribute

Channel IDs that should not be affected by the rule.