From abffc0b54c8da6df916fd39ec9adb202640f2921 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sat, 23 May 2020 23:52:05 +0300 Subject: [PATCH] Fix default page number in list command --- commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands.go b/commands.go index 27785c8..f86a417 100644 --- a/commands.go +++ b/commands.go @@ -578,7 +578,7 @@ func (handler *CommandHandler) CommandList(ce *CommandEvent) { ce.Reply("**Usage:** `list [page] [items per page]`") } var err error - page := 0 + page := 1 max := 100 if len(ce.Args) > 1 { page, err = strconv.Atoi(ce.Args[1])