From a7cc1dfdaa18af0062f0ed5fedd26d73af243205 Mon Sep 17 00:00:00 2001 From: Brendan McShane Date: Fri, 7 Jan 2022 16:28:21 -0500 Subject: [PATCH] Make uniform with existing code --- src/Discord.Net.Rest/Entities/Messages/MessageHelper.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Discord.Net.Rest/Entities/Messages/MessageHelper.cs b/src/Discord.Net.Rest/Entities/Messages/MessageHelper.cs index c5334980b..cd2a34f11 100644 --- a/src/Discord.Net.Rest/Entities/Messages/MessageHelper.cs +++ b/src/Discord.Net.Rest/Entities/Messages/MessageHelper.cs @@ -42,12 +42,11 @@ namespace Discord.Rest bool hasEmbeds = embed.IsSpecified && embed.Value != null || embeds.IsSpecified && embeds.Value?.Length > 0; bool hasComponents = args.Components.IsSpecified && args.Components.Value != null; bool hasAttachments = args.Attachments.IsSpecified; + bool hasFlags = args.Flags.IsSpecified; // No content needed if modifying flags - if ((!hasComponents && !hasText && !hasEmbeds && !hasAttachments) && !args.Flags.IsSpecified) - { + if ((!hasComponents && !hasText && !hasEmbeds && !hasAttachments) && !hasFlags) Preconditions.NotNullOrEmpty(args.Content.IsSpecified ? args.Content.Value : string.Empty, nameof(args.Content)); - } if (args.AllowedMentions.IsSpecified) {