Skip to content

Commit

Permalink
Use the componentId, not the event ID
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPowerGamerBR committed Oct 11, 2023
1 parent ae401f1 commit de35ff5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class ComponentInteractionListener(val m: LorittaHelper) : ListenerAdapter() {
.asMap()

override fun onButtonInteraction(event: ButtonInteractionEvent) {
val (id, data) = event.id.split(":")
val (id, data) = event.componentId.split(":")

if (id == "create_ticket") {
m.launch {
Expand Down

0 comments on commit de35ff5

Please sign in to comment.