#How to make a paginator from embeds with fields

1 messages · Page 1 of 1 (latest)

last pawn
#

I'm looking at documentation and trying to brutal force at this point the solution for a while now, but I can't make it work, with interactions.py I used to do something like this, more or less py from interactions import Embed embed = Embed() embeds = [] for x in range(100): embed.add_field(value=x) if x > 30: x = 0 embeds.appends(embed) embed = Embed() await Paginator.create_from_embeds(*embeds).send(ctx) but I can't figure out how to pass an embed into a paginator with lighbulb/hikari, I guess I'm missing something. but dunno

last pawn
#

Yea but how do I put embed into one?
I'm either getting errors or sending string instead of embed

alpine wave
#

pag = EmbedPaginator(…)
pag.add_line(…)

#

if you already have your embeds you’re gonna want a navigator instead, to navigate through the pages of embeds

#

there’s an example there

last pawn
#

yea but exactly I add embed to paginator? I dont see anywhere an example, if I'll do something like this

    paginated_help = pag.EmbedPaginator()
    paginated_help.add_line(embed)
    navigator = nav.ButtonNavigator(paginated_help.build_pages())
    await navigator.run(ctx)``` it won't work, right
#

it will output embed as a string

last pawn
#

oh, navigator = nav.ButtonNavigator(embeds) I guess it just works