same for the next arrow going to first page when triggered at last page
This commit is contained in:
parent
9e8045fe73
commit
05de1704f9
1 changed files with 4 additions and 1 deletions
|
@ -140,7 +140,10 @@ async def listReaction(client, payload):
|
||||||
if page + 1 <= int(infoDescription[2]):
|
if page + 1 <= int(infoDescription[2]):
|
||||||
page += 1
|
page += 1
|
||||||
else:
|
else:
|
||||||
return False, False
|
if page > 1:
|
||||||
|
page = 1
|
||||||
|
else:
|
||||||
|
return False, False
|
||||||
if payload.emoji.name == "🔄":
|
if payload.emoji.name == "🔄":
|
||||||
refresh_message = message
|
refresh_message = message
|
||||||
embed, _, refresh = await embedListe(utilisateur, payload.guild_id, page, embed["color"], refresh_message)
|
embed, _, refresh = await embedListe(utilisateur, payload.guild_id, page, embed["color"], refresh_message)
|
||||||
|
|
Reference in a new issue