Don't try paginating with empty results
This commit is contained in:
parent
627f544ee8
commit
7e8e1f1b8c
@ -119,7 +119,7 @@ namespace PluralKit.Bot {
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
var msg = await ctx.Reply(embed: await MakeEmbedForPage(0));
|
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 };
|
string[] botEmojis = { "\u23EA", "\u2B05", "\u27A1", "\u23E9", Emojis.Error };
|
||||||
|
|
||||||
var _ = msg.CreateReactionsBulk(botEmojis); // Again, "fork"
|
var _ = msg.CreateReactionsBulk(botEmojis); // Again, "fork"
|
||||||
|
Loading…
Reference in New Issue
Block a user