From cff8a258d01911f88bbe27d74687f9f18cffcfb8 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Sun, 7 Jul 2024 10:07:35 +0000 Subject: [PATCH] fix: .coins will respect the user specified page now --- src/NadekoBot/Modules/Searches/Crypto/CryptoCommands.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/NadekoBot/Modules/Searches/Crypto/CryptoCommands.cs b/src/NadekoBot/Modules/Searches/Crypto/CryptoCommands.cs index 1cccd9de2..74729876f 100644 --- a/src/NadekoBot/Modules/Searches/Crypto/CryptoCommands.cs +++ b/src/NadekoBot/Modules/Searches/Crypto/CryptoCommands.cs @@ -197,6 +197,9 @@ public partial class Searches if (--page < 0) return; + if (page > 25) + page = 25; + await Response() .Paginated() .PageItems(async (page) => @@ -226,6 +229,7 @@ public partial class Searches return embed; }) + .CurrentPage(page) .AddFooter(false) .SendAsync(); }