mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Don't try paginating with empty results
This commit is contained in:
parent
627f544ee8
commit
7e8e1f1b8c
1 changed files with 1 additions and 1 deletions
|
|
@ -119,7 +119,7 @@ namespace PluralKit.Bot {
|
|||
try
|
||||
{
|
||||
var msg = await ctx.Reply(embed: await MakeEmbedForPage(0));
|
||||
if (pageCount == 1) return; // If we only have one page, don't bother with the reaction/pagination logic, lol
|
||||
if (pageCount <= 1) return; // If we only have one (or no) page, don't bother with the reaction/pagination logic, lol
|
||||
string[] botEmojis = { "\u23EA", "\u2B05", "\u27A1", "\u23E9", Emojis.Error };
|
||||
|
||||
var _ = msg.CreateReactionsBulk(botEmojis); // Again, "fork"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue