Skip to content

Commit

Permalink
Properly fix one of the deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
gdude2002 committed Mar 25, 2023
1 parent e3f295e commit d5488a7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import dev.kord.core.entity.channel.DmChannel
import dev.kord.core.event.interaction.SelectMenuInteractionCreateEvent
import dev.kord.rest.builder.component.ActionRowBuilder
import dev.kord.rest.builder.component.SelectOptionBuilder
import dev.kord.rest.builder.component.options
import io.sentry.Sentry
import mu.KLogger
import mu.KotlinLogging
Expand Down Expand Up @@ -109,7 +110,6 @@ public abstract class SelectMenu<C : SelectMenuContext, M : ModalForm>(
builder.stringSelect(id) {
this.allowedValues = minimumChoices..maximumChoices!!

@Suppress("DEPRECATION_ERROR") // Kord suppresses this in their own class
this.options.addAll(this@SelectMenu.options)
this.placeholder = this@SelectMenu.placeholder

Expand Down

0 comments on commit d5488a7

Please sign in to comment.