Browse Source

fix `CreatePostError` (#2546)

pull/2548/head
Misha133 GitHub 2 years ago
parent
commit
c67642acfa
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.Rest/Entities/Channels/ThreadHelper.cs

+ 1
- 1
src/Discord.Net.Rest/Entities/Channels/ThreadHelper.cs 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()
{


Loading…
Cancel
Save