Browse Source

Fix InvalidOperationException in modify channel

pull/1923/head
quin lynch 3 years ago
parent
commit
830bc3dbf1
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/Discord.Net.Rest/DiscordRestApiClient.cs

+ 3
- 1
src/Discord.Net.Rest/DiscordRestApiClient.cs View File

@@ -373,7 +373,9 @@ namespace Discord.API
Preconditions.NotNull(args, nameof(args));
Preconditions.AtLeast(args.Position, 0, nameof(args.Position));
Preconditions.NotNullOrWhitespace(args.Name, nameof(args.Name));
Preconditions.LessThan(args.Name.Value.Length, 100, nameof(args.Name));

if(args.Name.IsSpecified)
Preconditions.LessThan(args.Name.Value.Length, 100, nameof(args.Name));

options = RequestOptions.CreateOrClone(options);



Loading…
Cancel
Save