ModerationRule constructor
ModerationRule({
- required Snowflake id,
- required Snowflake guildId,
- required Guild guild,
- required String label,
- required ModerationEventType eventType,
- required List<
ModerationAction> actions, - required ModerationTriggerType triggerType,
- required ModerationTriggerMetadata triggerMetadata,
- required bool enabled,
- required List<
Role> exemptRoles, - 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,
});