From ebcc4b8e7887b71b77da0d969a56a7f2eea5abb4 Mon Sep 17 00:00:00 2001 From: Paulo Date: Wed, 13 May 2020 04:38:40 -0300 Subject: [PATCH] Fix limit when getting from rest without message id --- src/Discord.Net.Rest/Entities/Channels/ChannelHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Discord.Net.Rest/Entities/Channels/ChannelHelper.cs b/src/Discord.Net.Rest/Entities/Channels/ChannelHelper.cs index 6dc9f4b51..b424cbe32 100644 --- a/src/Discord.Net.Rest/Entities/Channels/ChannelHelper.cs +++ b/src/Discord.Net.Rest/Entities/Channels/ChannelHelper.cs @@ -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(