Skip to content

Commit

Permalink
fix: Update maximum value for SlowModeInterval (#1320)
Browse files Browse the repository at this point in the history
Discord allows the slow mode to be up to 6 hours.
  • Loading branch information
Jyrka98 authored and foxbot committed Jun 5, 2019
1 parent 63ccd05 commit 4433ca7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Discord.Net.Rest/DiscordRestApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ public async Task<Channel> ModifyGuildChannelAsync(ulong channelId, Rest.ModifyT
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);
Expand Down

0 comments on commit 4433ca7

Please sign in to comment.