fix return

This commit is contained in:
Mylloon 2021-08-22 16:01:35 +02:00
parent 41dd47e6bd
commit eabdafe774

View file

@ -80,12 +80,9 @@ async def embedListeReminder(utilisateur, guildID, page, color = None, refresh_m
for emoji in ["⬅️", "➡️"]: for emoji in ["⬅️", "➡️"]:
await refresh_message.add_reaction(emoji) await refresh_message.add_reaction(emoji)
else: else:
return (False, False, False) return (False, False)
if pageMAX > 1: if pageMAX == 1:
refresh = False
else:
refresh = True
page = 1 # force page 1 page = 1 # force page 1
if color == None: if color == None:
color = Colour.random() color = Colour.random()