How to remove existing images from message? #2236
-
Editing a message object allows specifying file or files, but those are new files, as both per documentation and per my experiments: Is there a workflow which allows to replace image with a new one? I couldn't find obvious way how to delete the existing image(s) on the message. |
Beta Was this translation helpful? Give feedback.
Answered by
honzajavorek
Oct 3, 2023
Replies: 1 comment
-
Figured it out! await message.edit(
files=[File('blah/blah/smurfs-having-a-party.jpg')],
attachments=[],
) Docs: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
honzajavorek
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Figured it out!
Docs: