ModerationRule constructor

ModerationRule({
  1. required Snowflake id,
  2. required Snowflake guildId,
  3. required Guild guild,
  4. required String label,
  5. required ModerationEventType eventType,
  6. required List<ModerationAction> actions,
  7. required ModerationTriggerType triggerType,
  8. required ModerationTriggerMetadata triggerMetadata,
  9. required bool enabled,
  10. required List<Role> exemptRoles,
  11. required List<GuildChannel> exemptChannels,
})

Implementation

ModerationRule({
  required this.id,
  required this.guildId,
  required this.guild,
  required this.label,
  required this.eventType,
  required this.actions,
  required this.triggerType,
  required this.triggerMetadata,
  required this.enabled,
  required this.exemptRoles,
  required this.exemptChannels,
});