You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To add an attachment of a webhook that has already been sent, I can simply use client.edit.
But according to https://discord.com/developers/docs/resources/channel#attachment-object I need to provide a header named attachments to modify or remove existing attachments.
I provided the following headers to leave the attachment with ID '0002' in the webhook '0001' and remove all other attachments, and it worked correctly.
I couldn't find an API that does the above operation, so I made it myself. Is that implemented in discord-webhooks?
Let me know if it exists! I'm going to fix my bot.
If not.. Shall I make one?
The text was updated successfully, but these errors were encountered:
Kamilake
changed the title
Remove or add some attachments of already sent webhooks.
Edit or add some attachments of already sent webhooks.
May 31, 2023
Kamilake
changed the title
Edit or add some attachments of already sent webhooks.
Edit or remove some attachments of already sent webhooks.
May 31, 2023
To add an attachment of a webhook that has already been sent, I can simply use
client.edit
.But according to https://discord.com/developers/docs/resources/channel#attachment-object I need to provide a header named
attachments
to modify or remove existing attachments.I provided the following headers to leave the attachment with ID '0002' in the webhook '0001' and remove all other attachments, and it worked correctly.
The code below is my Java implementation.
I couldn't find an API that does the above operation, so I made it myself. Is that implemented in discord-webhooks?
Let me know if it exists! I'm going to fix my bot.
If not.. Shall I make one?
The text was updated successfully, but these errors were encountered: