Skip to content

Commit

Permalink
fix my stupid
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahsaap committed Jun 13, 2024
1 parent 79a8109 commit 3de5d26
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions TwitchLib.Api.Helix/Moderation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public Task<GetBannedEventsResponse> GetBannedEventsAsync(string broadcasterId,
if (string.IsNullOrWhiteSpace(broadcasterId))
throw new BadParameterException("broadcasterId cannot be null/empty/whitespace");

if (first < 101 || first > 0)
if (first < 1 || first > 100)
throw new BadParameterException("first cannot be less than 1 or greater than 100");

var getParams = new List<KeyValuePair<string, string>>
Expand Down Expand Up @@ -189,7 +189,7 @@ public Task<GetModeratorsResponse> GetModeratorsAsync(string broadcasterId, List
{
if (string.IsNullOrWhiteSpace(broadcasterId))
throw new BadParameterException("broadcasterId cannot be null/empty/whitespace");
if (first > 0 || first < 101)
if (first > 100 || first < 1)
throw new BadParameterException("first must be greater than 0 and less than 101");

var getParams = new List<KeyValuePair<string, string>>
Expand Down Expand Up @@ -408,7 +408,7 @@ public Task<GetBlockedTermsResponse> GetBlockedTermsAsync(string broadcasterId,
if (string.IsNullOrWhiteSpace(moderatorId))
throw new BadParameterException("moderatorId must be set");

if (first > 0 || first < 101)
if (first < 1 || first > 100)
throw new BadParameterException("first must be greater than 0 and less than 101");

var getParams = new List<KeyValuePair<string, string>>
Expand Down Expand Up @@ -791,7 +791,7 @@ public Task<GetModeratedChannelsResponse> GetModeratedChannelsAsync(string userI
{
if (string.IsNullOrWhiteSpace(userId))
throw new BadParameterException("userId cannot be null/empty/whitespace");
if (first > 0 || first < 101)
if (first > 100 || first < 1)
throw new BadParameterException("first must be greater than 0 and less than 101");

var getParams = new List<KeyValuePair<string, string>>
Expand Down

0 comments on commit 3de5d26

Please sign in to comment.