fix CreatePostError (#2546)

This commit is contained in:
Misha133
2022-12-25 15:36:33 +03:00
committed by GitHub
parent e9e687caf7
commit c67642acfa

View File

@@ -148,7 +148,7 @@ namespace Discord.Rest
throw new ArgumentException("The only valid MessageFlags are SuppressEmbeds and none.", nameof(flags));
if (channel.Flags.HasFlag(ChannelFlags.RequireTag))
throw new ArgumentException($"The channel {channel.Name} requires posts to have at least one tag.");
Preconditions.AtLeast(tagIds?.Length ?? 0, 1, nameof(tagIds), $"The channel {channel.Name} requires posts to have at least one tag.");
var args = new CreatePostParams()
{