From 05de1704f9970399fa80b056656db94c5fcc8aa7 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Fri, 30 Jul 2021 20:59:02 +0200 Subject: [PATCH] same for the next arrow going to first page when triggered at last page --- src/utils/reminder.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/utils/reminder.py b/src/utils/reminder.py index 2a9a6d3..8af5cb3 100644 --- a/src/utils/reminder.py +++ b/src/utils/reminder.py @@ -140,7 +140,10 @@ async def listReaction(client, payload): if page + 1 <= int(infoDescription[2]): page += 1 else: - return False, False + if page > 1: + page = 1 + else: + return False, False if payload.emoji.name == "🔄": refresh_message = message embed, _, refresh = await embedListe(utilisateur, payload.guild_id, page, embed["color"], refresh_message)