#Page Buttons fail to work after editing response
1 messages ยท Page 1 of 1 (latest)
await ctx.defer() ๐ฅ
thats not a message
you dont even have to defer, you arent doing anything that takes long
but what if i need to defer
im editing my response to h?
i think paginators have their own p.respond
you never respond.
i dont think you can attach local files with this one ๐
@pagetest.command(name="test")
async def pagetest_test(self, ctx: discord.ApplicationContext):
await ctx.defer()
await asyncio.sleep(5)
pageGroups = [
pages.PageGroup(
pages = ["hi", discord.Embed(title="chat")],
label = "first group",
description = "test"
),
pages.PageGroup(
pages = ["hi", "chat"],
label = "second group",
description = "test"
),
]
pageGroups[0].pages[1].set_thumbnail(url = "attachment://image.png")
file = discord.File(fp="temp/image.png", filename="image.png")
message = await ctx.edit(file=file)
paginator = pages.Paginator(pages=pageGroups, show_menu=True)
await paginator.edit(message=message)
so im trying to attach image to the second page's embed but buttons dont work ๐ฆ
why do you do asyncio sleep??
f = discord.File("some_file_path", filename="image.png")
e = discord.Embed()
e.set_image(url="attachment://image.png")
await messagable.send(file=f, embed=e)```
imagine some function that takes some time ๐
yea but you dont have anything there that takes time.
apis can take more time to respond and discord gives "The application did not respond" ๐คจ
anyway do this
isnt that what im doing already? cant even reach my embed since buttons dont work
no it isnt lol
you are setting the thumbnail
i dont think that can use a local file
still doesnt solve the problem with buttons???
decide on one problem at once lol