how to add pagination in discord py

Solutions on MaxInterview for how to add pagination in discord py by the best coders in the world

showing results for - "how to add pagination in discord py"
Philipp
10 Nov 2019
1pip install EZPaginator
2
Marc
02 May 2016
1        def check_react(reaction, user):
2        if reaction.message.id != msg.id:
3            return False
4        if user != ctx.message.author:
5            return False
6        return True
7    res, user = await bot.wait_for('reaction_add', check=check_react, timeout=None,)
8    if user != ctx.message.author:
9        print('if user != ctx.message.author:')
10    elif '⬅️' in str(res.emoji):
11        page -=1
12        print(page)
13        embed = discord.Embed(title='generic title', description='generic description', color=0x52fffc)
14        await msg.edit(embed=embed)
15    elif '➡️' in str(res.emoji):
16        page +=1
17        print(page)
18        embed = discord.Embed(title='generic title 2', description='generic description 2', color=0x52fffc)
19        await msg.edit(embed=embed)
20