same for the next arrow going to first page when triggered at last page

This commit is contained in:
Mylloon 2021-07-30 20:59:02 +02:00
parent 9e8045fe73
commit 05de1704f9

View file

@ -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)