Skip to content

Commit b729a5e

Browse files
committed
jda-ktx: Improve docs
1 parent 3a1e0f4 commit b729a5e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

BotCommands-jda-ktx/src/main/kotlin/dev/freya02/botcommands/jda/ktx/components/Label.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ class InlineLabel : InlineComponent {
1919
component = component.withUniqueId(value)
2020
}
2121

22-
/** The label of this Label, see [Label.withLabel] */
2322
private var _label: String? = null
23+
/** The label of this Label, see [Label.withLabel] */
2424
var label: String
2525
get() = _label.checkInit("label content")
2626
set(value) {

BotCommands-jda-ktx/src/main/kotlin/dev/freya02/botcommands/jda/ktx/components/SelectMenu.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ abstract class InlineSelectMenu : InlineComponent {
4747
builder.placeholder = value
4848
}
4949

50-
/** The minimum and maximum amount of values a user can select, must not exceed the amount of options */
50+
/** The minimum and maximum amount of values a user can select, must not exceed [SelectMenu.OPTIONS_MAX_AMOUNT] */
5151
var valueRange: IntRange
5252
get() = builder.minValues..builder.maxValues
5353
set(value) {
@@ -61,7 +61,7 @@ abstract class InlineSelectMenu : InlineComponent {
6161
builder.setMinValues(value)
6262
}
6363

64-
/** The maximum amount of values a user can select, must not exceed the amount of options */
64+
/** The maximum amount of values a user can select, must not exceed [SelectMenu.OPTIONS_MAX_AMOUNT] */
6565
var maxValues: Int
6666
get() = builder.maxValues
6767
set(value) {

BotCommands-jda-ktx/src/main/kotlin/dev/freya02/botcommands/jda/ktx/ranges/Ranges.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import dev.freya02.botcommands.jda.ktx.DeprecatedInBcCore
44
import net.dv8tion.jda.api.components.selections.SelectMenu
55

66
/**
7-
* The minimum and maximum amount of values a user can select.
7+
* The minimum and maximum amount of values a user can select, must not exceed [SelectMenu.OPTIONS_MAX_AMOUNT].
88
*/
99
@DeprecatedInBcCore
1010
fun <B : SelectMenu.Builder<*, B>> SelectMenu.Builder<*, B>.setRequiredRange(range: IntRange): B = setRequiredRange(range.first, range.last)

0 commit comments

Comments
 (0)