Skip to content

Can I make rendering a new embed image fast/instant for users? #2088

Closed Answered by JustaSqu1d
jacksonthall22 asked this question in Q&A
Discussion options

You must be logged in to vote

To start off, the GitHub discussions tab is not intended for help-related questions: please ask in our Discord server, instead.

The behavior you're experiencing is a limitation of Discord. When you use ctx.interaction.edit_original_message(embed=e) to update the embed, Discord treats it as a new message and temporarily removes the original message before displaying the updated one. This causes the 0.5s delay and the jumping effect you're observing. Using discord.File as a workaround to reference the image directly in the embed is not necessary in this case. Discord handles image URLs in embeds as efficiently as uploading a PNG since they are both stored on Discord's CDN.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by JustaSqu1d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
discord limitation Limitation imposed by discord
2 participants