update reminderlist even when the pageMAX in the message is less or equal than 1
This commit is contained in:
parent
79ec9cdc57
commit
bdc17c1fef
1 changed files with 6 additions and 2 deletions
|
@ -122,6 +122,10 @@ class Reminder(Database):
|
|||
if payload.emoji.name == "➡️":
|
||||
if page + 1 <= int(infoDescription[2]):
|
||||
page += 1
|
||||
else:
|
||||
pageMAX = -(-len(self.listeReminder(utilisateur.id, payload.guild_id)) // 5)
|
||||
if pageMAX > 1:
|
||||
page += 1
|
||||
else:
|
||||
return False, False
|
||||
embed, _ = Reminder().embedListe(utilisateur, payload.guild_id, page, embed["color"])
|
||||
|
|
Reference in a new issue