Here I'm using a variable (i) to keep track of the page number. You'd initially send an embed (page 0) and grab the message object (msg).
def reac_check(r, u):
return msg.id == r.message.id and u!=self.bot.user and r.emoji in ['1','2','3']
i = 0
while True:
try:
reaction, user = await self.bot.wait_for('reaction_add', timeout=20.0, check=reac_check)
em = str(reaction.emoji)
except TimeoutError:
print("caught")
break #we exit the loop
if user!=self.bot.user:
await msg.remove_reaction(emoji=em, member=user)
if em == '1':
#edit message with embed of page 1
#other cases go here
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…