Skip to content

Commit 169d54f

Browse files
authored
Fix being unable to modify AllowedMentions with no embeds set.(#2108)
1 parent 6039378 commit 169d54f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Discord.Net.Rest/Entities/Messages/MessageHelper.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ public static async Task<Model> ModifyAsync(ulong channelId, ulong msgId, BaseDi
5353
AllowedMentions allowedMentions = args.AllowedMentions.Value;
5454
Preconditions.AtMost(allowedMentions?.RoleIds?.Count ?? 0, 100, nameof(allowedMentions.RoleIds), "A max of 100 role Ids are allowed.");
5555
Preconditions.AtMost(allowedMentions?.UserIds?.Count ?? 0, 100, nameof(allowedMentions.UserIds), "A max of 100 user Ids are allowed.");
56-
Preconditions.AtMost(args.Embeds.Value?.Length ?? 0, 10, nameof(args.Embeds), "A max of 10 embeds are allowed.");
5756

5857
// check that user flag and user Id list are exclusive, same with role flag and role Id list
5958
if (allowedMentions != null && allowedMentions.AllowedTypes.HasValue)

0 commit comments

Comments
 (0)