go trough page of other user in reminderlist
This commit is contained in:
parent
2660b3284a
commit
a4a5c7abcb
1 changed files with 9 additions and 5 deletions
|
@ -134,14 +134,18 @@ class ReminderDiscord(commands.Cog):
|
||||||
_, fromSlash, arg = isSlash(arg)
|
_, fromSlash, arg = isSlash(arg)
|
||||||
utilisateur = ctx.author.id
|
utilisateur = ctx.author.id
|
||||||
page = 1
|
page = 1
|
||||||
|
erreur = False
|
||||||
if len(arg) > 0:
|
if len(arg) > 0:
|
||||||
try:
|
for i in range(0, len(arg)):
|
||||||
utilisateur = mentionToUser(getMentionInString(arg[0])[0])
|
|
||||||
except:
|
|
||||||
try:
|
try:
|
||||||
page = int(arg[0])
|
utilisateur = mentionToUser(getMentionInString(arg[i])[0])
|
||||||
except:
|
except:
|
||||||
return await mySendHidden(ctx, fromSlash, "Veuillez renseigné un utilisateur ou un numéro de page valide.")
|
try:
|
||||||
|
page = int(arg[i])
|
||||||
|
except:
|
||||||
|
erreur = True
|
||||||
|
if erreur == True:
|
||||||
|
return await mySendHidden(ctx, fromSlash, "Veuillez renseigné un utilisateur ou un numéro de page valide.")
|
||||||
|
|
||||||
reminders = Reminder().listeReminder(utilisateur, ctx.guild.id)
|
reminders = Reminder().listeReminder(utilisateur, ctx.guild.id)
|
||||||
if fromSlash != True:
|
if fromSlash != True:
|
||||||
|
|
Reference in a new issue