-
Notifications
You must be signed in to change notification settings - Fork 82
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
Missing attachments
for message/webhook edit
#372
Comments
attachments
for messagesattachments
for message/webhook edit
Not all messages are the same. Ephemeral messages can't have files. |
Yes... but I'm not talking about file upload, I'm talking about removing files from an existing message From the docs
Unless if I'm blind, Kord doesn't seem to support this (it isn't present in the persistent message modify builder), you can attach new files to a message, sure, but you can't remove attachments from an existing message. I may be misunderstanding what the |
attachments are files on your side. |
The files field is used for file upload, sure, this makes sense and it does work. But if you are editing a message (via webhooks, normal messages or interactions) you can also remove files already uploaded to it, so, what I can do is: Send a message with a "image.png" file and then later edit the message by uploading a "image.gif" file to it, and using the Currently with Kord, while you can add new files to an already existing message, you can't remove the original image from the message. Of course, I may be misunderstanding what the Discord documentation says, but "attached files to keep" seems to be that it can be used to remove files from an existing message, and the |
just provide an empty list for the |
That's what I did, and it didn't work 😭 Probably because setting an empty list just clears the |
The
attachments
field can be used to keep already existing attachments in a message, I guess that because Kord never uses that field, all attachments in the message are kept.https://discord.com/developers/docs/resources/channel#edit-message
https://discord.com/developers/docs/resources/webhook#edit-webhook-message
The text was updated successfully, but these errors were encountered: