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

Attachment management #52

Open
BadCoder1337 opened this issue Jul 28, 2021 · 0 comments
Open

Attachment management #52

BadCoder1337 opened this issue Jul 28, 2021 · 0 comments

Comments

@BadCoder1337
Copy link
Contributor

The current Discohook file features are heavily outdated compared with Discord API features.

Despite it's allowed by API you cannot remove or replace message attachments. Every time when you click Edit a new attachment adds to message.

The message could be synchronized with attachments:[] field, but then you should reupload files every time when you want to edit a message.

The ideal solution is to fetch previously sent message using referenceUrl to get current attachments. With that you could easily replace and remove attachments with attachments:[...] fields in PATCH payload.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant