Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Using a local image within a paginated embed #32

Open
LankyRyan opened this issue Sep 15, 2021 · 1 comment
Open

Using a local image within a paginated embed #32

LankyRyan opened this issue Sep 15, 2021 · 1 comment

Comments

@LankyRyan
Copy link

This isn't an "issue" but I'm trying to use a local image within a paginated embed and am striking out. I can embed an image within a non-paginated embed just fine using the following:

file = discord.File("imagename.png", filename="image.png")
embed = discord.Embed(title="foo")
embed.set_image(url="attachment://image.png")
await ctx.send(file=file, embed=embed)

But when attempting to utilize similar syntax with the paginator, it seems to not enjoy having another variable to process.

An example:

ctx.bot.loop.create_task(paginator.run(file=file, embeds=embeds))

I've tried a couple variations, but to no avail. The best I can get is either the embeds without the image or the image as an attachment (as a normal message, outside of an embed).

If anyone has any suggestions, I'm all ears

@pintermor9
Copy link

upload the file. Send it in a discord channel, copy url and put that in there.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants