Bitrate must be at least 8000

per the following API error:
{
  "bitrate": [
    "Int value should be greater than 8000."
  ]
}
This commit is contained in:
Christopher F
2016-12-04 17:51:57 -05:00
parent e2aa0e92a4
commit a4e95923b6

View File

@@ -357,7 +357,7 @@ namespace Discord.API
{
Preconditions.NotEqual(channelId, 0, nameof(channelId));
Preconditions.NotNull(args, nameof(args));
Preconditions.GreaterThan(args.Bitrate, 0, nameof(args.Bitrate));
Preconditions.GreaterThan(args.Bitrate, 8000, nameof(args.Bitrate));
Preconditions.AtLeast(args.UserLimit, 0, nameof(args.Bitrate));
Preconditions.AtLeast(args.Position, 0, nameof(args.Position));
Preconditions.NotNullOrEmpty(args.Name, nameof(args.Name));