diff --git a/src/Discord.Net.Rest/Entities/Guilds/GuildHelper.cs b/src/Discord.Net.Rest/Entities/Guilds/GuildHelper.cs index f902df8c76..2f68e6508b 100644 --- a/src/Discord.Net.Rest/Entities/Guilds/GuildHelper.cs +++ b/src/Discord.Net.Rest/Entities/Guilds/GuildHelper.cs @@ -1100,7 +1100,7 @@ public static async Task CreateAutoModRuleAsync(IGuild guild if (!args.Name.IsSpecified || string.IsNullOrWhiteSpace(args.Name.Value)) throw new ArgumentException("Name of the rule must not be empty", paramName: nameof(args.Name)); - Preconditions.AtLeast(1, args.Actions.GetValueOrDefault(Array.Empty()).Length, nameof(args.Actions), "Auto moderation rule must have at least 1 action"); + Preconditions.AtLeast(args.Actions.GetValueOrDefault(Array.Empty()).Length, 1, nameof(args.Actions), "Auto moderation rule must have at least 1 action"); if (args.RegexPatterns.IsSpecified) {