Class AutoModeration

Hierarchy

  • AutoModeration

Implements

Constructors

Properties

actions the actions which will execute when the rule is triggered

Returns

array

creator_id: string = ""

creator_id the user which first created this rule

Returns

snowflake

enabled: boolean = false

enabled whether the rule is enabled

Returns

boolean

event_type: MESSAGE_SEND = 1

event_type the rule event type

Returns

EventType

exempt_channels: string[] = []

exempt_channels the channel ids that should not be affected by the rule (Maximum of 50)

Returns

array

exempt_roles: string[] = []

exempt_roles the role ids that should not be affected by the rule (Maximum of 20)

Returns

array

guilded_id: string = ""

guilded_id the id of the guild which this rule belongs to

Returns

snowflake

id: string = ""

id the id of this rule

Returns

snowflake

name: string = ""

name the rule name

Returns

string

reqeust: Request
trigger_metadata: TriggerMetaData

trigger_metadata the rule trigger metadata

Returns

integer

trigger_type: TriggerType = 1

trigger_type the rule trigger type

Returns

TriggerType

Methods

  • Parameters

    • guildID: string
    • opts: {
          id: string;
      }
      • id: string

    Returns Promise<unknown>

  • Parameters

    • guildID: string
    • opts: {
          id: string;
      }
      • id: string

    Returns Promise<unknown>

Generated using TypeDoc