Browse Source

Fix limit when getting from rest without message id

pull/1526/head
Paulo 5 years ago
parent
commit
ebcc4b8e78
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.Rest/Entities/Channels/ChannelHelper.cs

+ 1
- 1
src/Discord.Net.Rest/Entities/Channels/ChannelHelper.cs View File

@@ -119,7 +119,7 @@ namespace Discord.Rest
return GetMessagesAsync(channel, client, fromMessageId.Value + 1, Direction.Before, around + 1, options) //Need to include the message itself
.Concat(GetMessagesAsync(channel, client, fromMessageId, Direction.After, around, options));
else //Shouldn't happen since there's no public overload for ulong? and Direction
return GetMessagesAsync(channel, client, null, Direction.Before, around, options);
return GetMessagesAsync(channel, client, null, Direction.Before, around + 1, options);
}

return new PagedAsyncEnumerable<RestMessage>(


Loading…
Cancel
Save