Browse Source

fix: Update maximum value for SlowModeInterval (#1320)

Discord allows the slow mode to be up to 6 hours.
tags/2.1.1
Jyrka98 Christopher F 6 years ago
parent
commit
4433ca741b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.Rest/DiscordRestApiClient.cs

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

@@ -376,7 +376,7 @@ namespace Discord.API
Preconditions.AtLeast(args.Position, 0, nameof(args.Position));
Preconditions.NotNullOrEmpty(args.Name, nameof(args.Name));
Preconditions.AtLeast(args.SlowModeInterval, 0, nameof(args.SlowModeInterval));
Preconditions.AtMost(args.SlowModeInterval, 120, nameof(args.SlowModeInterval));
Preconditions.AtMost(args.SlowModeInterval, 21600, nameof(args.SlowModeInterval));
options = RequestOptions.CreateOrClone(options);

var ids = new BucketIds(channelId: channelId);


Loading…
Cancel
Save