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
typings(Attachment): make attachment
private
#8982
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
attachment
I cannot seem to find where this is referenced:
Perhaps it's a remnant of an old refactor - possibly from being split into a builder? That property can be removed too. Pretty sure. |
Okay, I just found out how and where this is being used. Let's say a message is created and it has an attachment. They would be created as an We modify that via Without that property, it looks like the |
@Jiralite Wait, revert structures change and keep the typing removed entirely or revert structures change and keep the typing but change it to |
Probably best to remove the typings altogether since there is no documentation for it. |
This reverts commit 88acb8d.
Isn't it better to make that property private? |
Done. |
Maybe you should change the return type too, if it actually returns a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mind also modifying the pull request title to reflect the changes too?
attachment
attachment
private
Please describe the changes this PR makes and why it should be merged:
Removes
<Attachment>.attachment
. This isn't documented anywhere in the docs and from my testing returns a URL likehttps://cdn.discordapp.com/ephemeral-attachments/XXXXXXXXXXXXXXXXXX/XXXXXXXXXXXXXXXXXX/message.txt
. If this is here on purpose then the typing should bestring
, notBufferResolvable | Stream
.Status and versioning classification: