Skip to content

Commit

Permalink
Revert change to choices type in BaseChoiceBuilder from #505 (#512)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukellmann authored Jan 30, 2022
1 parent 824c593 commit 38e4e44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rest/src/main/kotlin/builder/interaction/OptionsBuilder.kt
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ public sealed class BaseChoiceBuilder<T>(
description: String,
type: ApplicationCommandOptionType
) : OptionsBuilder(name, description, type) {
private var _choices: Optional<MutableList<Choice<T>>> = Optional.Missing()
public var choices: MutableList<Choice<T>>? by ::_choices.delegate()
private var _choices: Optional<MutableList<Choice<*>>> = Optional.Missing()
public var choices: MutableList<Choice<*>>? by ::_choices.delegate()

public abstract fun choice(name: String, value: T)

Expand Down

0 comments on commit 38e4e44

Please sign in to comment.