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,13 +134,17 @@ 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:
|
||||||
|
for i in range(0, len(arg)):
|
||||||
try:
|
try:
|
||||||
utilisateur = mentionToUser(getMentionInString(arg[0])[0])
|
utilisateur = mentionToUser(getMentionInString(arg[i])[0])
|
||||||
except:
|
except:
|
||||||
try:
|
try:
|
||||||
page = int(arg[0])
|
page = int(arg[i])
|
||||||
except:
|
except:
|
||||||
|
erreur = True
|
||||||
|
if erreur == True:
|
||||||
return await mySendHidden(ctx, fromSlash, "Veuillez renseigné un utilisateur ou un numéro de page valide.")
|
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)
|
||||||
|
|
Reference in a new issue