-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
docs: cleanup MessageCreateOptions and MessageReplyOptions #9283
Conversation
@BoogeyMan24 is attempting to deploy a commit to the discordjs Team on Vercel. A member of the Team first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://discord-js-git-fork-boogeyman24-main-discordjs.vercel.app/ |
But it already has pr? |
I deleted stickers because MessageCreateOptions already has stickers. |
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.
Extending MessageCreateOptions
isn't correct. It contains irrelevant properties such as reply
, etc.
I will just extend |
For purposes of deduplication, I would:
|
I added the changes for deduplication as you suggested. |
packages/discord.js/src/structures/interfaces/TextBasedChannel.js
Outdated
Show resolved
Hide resolved
Co-authored-by: Jaw0r3k <jaworekwiadomosci@gmail.com>
Please describe the changes this PR makes and why it should be merged:
Changed
BaseMessageCreateOptions
toBaseMessageOptions
and addedtts
,nonce
,stickers
, andflags
as well. All near line 822 indiscordjs/src/structures/Messages.js
.Hopefully this fixes #9209.
Edit: As suggested by Jiralite and for deduplication purposes,
BaseMessageCreateOptions
has been created to contain the the shared data ofMessageCreateOptions
andMessageReplyOptions
.MessageCreateOptions
andMessageReplyOptions
have been updated to extendBaseMessageCreateOptions
and have their respective special properties addedreply
, andfailIfNotExists
.I probably may have missed something, so if I did just send a comment and I will change it.
Status and versioning classification:
There are no code changes
This PR only includes non-code changes, like changes to documentation, README, etc.