-
Notifications
You must be signed in to change notification settings - Fork 91
Feat/components v2 #1009
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
base: main
Are you sure you want to change the base?
Feat/components v2 #1009
Conversation
# Conflicts: # core/src/commonMain/kotlin/entity/Emoji.kt
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.
review of common
Co-authored-by: Luca Kellermann <[email protected]>
| /** | ||
| * Adds a separator with specified [spacing]. | ||
| */ | ||
| public fun separator(spacing: SeparatorSpacingSize): Unit = separator { |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
| /** | ||
| * Adds a separator with specified [spacing]. | ||
| */ | ||
| public fun separator(spacing: SeparatorSpacingSize): Unit = separator { |
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.
| public fun separator(spacing: SeparatorSpacingSize): Unit = separator { | |
| public fun separator( | |
| spacing: SeparatorSpacingSize? = null, | |
| divider: Boolean? = null, | |
| ): Unit = separator { | |
| this.spacing = spacing | |
| this.divider = divider | |
| } |
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.
I don't really see the point of that, you can just call the seperator function with the builder yourself
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.
I agree, but there is no point to have partial member function. My opinion is "all or nothing" :D
Co-authored-by: Peter Gulko <[email protected]>
|
Hey @DRSchlaubi ! Nice PR. I had to make a few tiny changes to make it work here:
You can see the details in the last three commits here: [1] When deserializing the incoming messages in the Gateway, the |
These types aren't new and weren't even touched in this PR, they have been there since #891
I couldn't find anything you can do with the |
| * A message can have up to five action rows. | ||
| * A message can have up to ten top-level components. | ||
| */ | ||
| @Deprecated("Use ComponentContainerBuilder#actionRow instead.") |
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.
This deprecation isn't actionable since this extension is more specific than ComponentContainerBuilder.actionRow (MessageBuilder implements that interface). Just don't deprecate it or use @LowPriorityInOverloadResolution. Should also add replaceWith and explicit level when going with the deprecation.
|
Is there something that can be helped with regarding this PR? Would love to see this implemented. |
# Conflicts: # rest/api/rest.api
|
tested around a bit and so far there was no error during the entire testing that could have been related to components v2 Edit: found out the hard way that a section cant have more than 3 text displays. |
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.
Realised I never actually read this through, Looks good to me, one comment from Luke about deprecation that I agree with but other than that perfect :D
No description provided.