Add MentionRaidProtectionEnabled (#3056)

This commit is contained in:
Mihail Gribkov
2025-01-19 13:37:57 +03:00
committed by GitHub
parent d828cd8821
commit 0e9caf382a
7 changed files with 69 additions and 55 deletions

View File

@@ -1538,6 +1538,7 @@ namespace Discord.Rest
AllowList = args.AllowList.IsSpecified ? args.AllowList : rule.AllowList.ToArray(),
MentionLimit = args.MentionLimit.IsSpecified ? args.MentionLimit : rule.MentionTotalLimit ?? Optional<int>.Unspecified,
Presets = args.Presets.IsSpecified ? args.Presets : rule.Presets.ToArray(),
MentionRaidProtectionEnabled = args.MentionRaidProtectionEnabled.IsSpecified ? args.MentionRaidProtectionEnabled : rule.MentionRaidProtectionEnabled ?? Optional<bool>.Unspecified,
} : Optional<API.TriggerMetadata>.Unspecified
};