Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to edit PartialMessage's embed on 2.0.0b5 #1182

Closed
3 tasks done
argo0n opened this issue Mar 19, 2022 · 3 comments · Fixed by #1238
Closed
3 tasks done

Unable to edit PartialMessage's embed on 2.0.0b5 #1182

argo0n opened this issue Mar 19, 2022 · 3 comments · Fixed by #1238
Labels
bug Something isn't working

Comments

@argo0n
Copy link
Contributor

argo0n commented Mar 19, 2022

Summary

I am unable to edit a PartialMessage's embed on Pycord's 2.0.0b5 version, although editing the content works.

Reproduction Steps

  1. Send a message
  2. Get the partial message through get_partial_message(message id)
  3. edit the partial message with .edit(embed=embed)

Minimal Reproducible Code

import asyncio
embed = discord.Embed(title="Alpha")
msg = await ctx.send("Alpha", embed=embed)
await asyncio.sleep(1.0)
partialmsg = ctx.channel.get_partial_message(msg.id)
embed.title = "Bravo"
await partialmsg.edit(content = "Bravo", embed=embed)

Expected Results

When editing the message, both the content and the embed gets edited.

Actual Results

Only the content got edited. If you only pass embed and not content, the same thing happens.

Intents

discord.Intents(guilds = True, members = True, presences = True, messages = True, reactions = True, emojis = True, invites = True, voice_states = True, message_content = True)

System Information

  • Python v3.8.10-final
  • py-cord v2.0.0-beta
    • py-cord pkg_resources: v2.0.0b5
  • aiohttp v3.7.4.post0
  • system info: Windows 10 10.0.22000

Checklist

  • I have searched the open issues for duplicates.
  • I have shown the entire traceback, if possible.
  • I have removed my token from display, if visible.

Additional Context

Editing the partial message still works on 2.0.0b4 and lower.

Here's a video: https://cdn.discordapp.com/attachments/871737314831908974/954658593217585172/2022-03-19_16-30-36.mp4

@argo0n argo0n added the unconfirmed bug A bug report that needs triaging label Mar 19, 2022
@Tiffinini
Copy link

Ran into this same issue today which is what led me here. No attempts to push embed changes via the .edit method of a partial message appear to work in b5.

@argo0n
Copy link
Contributor Author

argo0n commented Apr 8, 2022

Just found out setting discord.http.API_VERSION = 9 is a workaround for this problem, so I'm assuming it's a problem with the HTTP state/API?

@Middledot Middledot added bug Something isn't working and removed unconfirmed bug A bug report that needs triaging labels Apr 9, 2022
Middledot added a commit that referenced this issue Apr 9, 2022
Lulalaby pushed a commit that referenced this issue Apr 9, 2022
@argo0n
Copy link
Contributor Author

argo0n commented Apr 9, 2022

Thank you so much for fixing it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants