io.github.freya022.botcommands.api.components.event.ButtonEvent.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of BotCommands Show documentation
Show all versions of BotCommands Show documentation
A Kotlin-first (and Java) framework that makes creating Discord bots a piece of cake, using the JDA library.
package io.github.freya022.botcommands.api.components.event
import io.github.freya022.botcommands.api.commands.ratelimit.CancellableRateLimit
import io.github.freya022.botcommands.api.core.BContext
import net.dv8tion.jda.api.events.interaction.component.ButtonInteractionEvent
class ButtonEvent internal constructor(
val context: BContext,
event: ButtonInteractionEvent,
cancellableRateLimit: CancellableRateLimit
) : ButtonInteractionEvent(event.jda, event.responseNumber, event.interaction),
CancellableRateLimit by cancellableRateLimit