-
-
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
refactor: removed code
and split
options
#5918
refactor: removed code
and split
options
#5918
Conversation
b704865
to
e5c26aa
Compare
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.
You missed one instance of splitting:
https://github.com/kyranet/discord.js/blob/dc02352247f67e290aefef1387cb768ffe92f61c/src/structures/Webhook.js#L169-L171
Co-authored-by: Jan <[email protected]> BREAKING CHANGE: Removed `APIMessage#split` BREAKING CHANGE: Removed `MessageEditOptions#code` BREAKING CHANGE: Removed `BaseMessageOptions#code` BREAKING CHANGE: Removed `BaseMessageOptions#split`
30c4720
to
dccdf1f
Compare
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.
🧹🧹
Please describe the changes this PR makes and why it should be merged:
🧹 clean-up service here, removing old remnants from old versions of discord.js
APIMessage#split
MessageEditOptions#code
BaseMessageOptions#code
BaseMessageOptions#split
No other method in the entire library does two requests to the same path. This method was an exception for many years, and is something that should always been done by the user.
You can still use the
Util.splitMessage
utility, and then with given array, send all the messages as you desire.As for
code
, simply wrap the content into ```js\n${content}```. We're releasing an utility later in the future too, so you can docodeblock('js', content)
.Status and versioning classification: