Update: Please check this answer for the latest version of discord.py
.
Here you go... I was able to create a command that edits the embed on reaction clicks:
Program:
@client.command()
async def embedpages():
page1 = discord.Embed (
title = 'Page 1/3',
description = 'Description',
colour = discord.Colour.orange()
)
page2 = discord.Embed (
title = 'Page 2/3',
description = 'Description',
colour = discord.Colour.orange()
)
page3 = discord.Embed (
title = 'Page 3/3',
description = 'Description',
colour = discord.Colour.orange()
)
pages = [page1, page2, page3]
message = await client.say(embed = page1)
await client.add_reaction(message, '⏮')
await client.add_reaction(message, '◀')
await client.add_reaction(message, '▶')
await client.add_reaction(message, '⏭')
i = 0
emoji = ''
while True:
if emoji == '⏮':
i = 0
await client.edit_message(message, embed = pages[i])
elif emoji == '◀':
if i > 0:
i -= 1
await client.edit_message(message, embed = pages[i])
elif emoji == '▶':
if i < 2:
i += 1
await client.edit_message(message, embed = pages[i])
elif emoji == '⏭':
i = 2
await client.edit_message(message, embed=pages[i])
res = await client.wait_for_reaction(message = message, timeout = 30.0)
if res == None:
break
if str(res[1]) != '<Bots name goes here>': #Example: 'MyBot#1111'
emoji = str(res[0].emoji)
await client.remove_reaction(message, res[0].emoji, res[1])
await client.clear_reactions(message)
Screenshot:

For accepting a page number you'll have to create an if statement for that emoji and use the wait_for_message()
function. Then you'll have to check whether the page number is valid and change the value of i
accordingly.
I hope you get the idea.