![JAR search and dependency download from the Maven repository](/logo.png)
io.github.freya022.botcommands.api.commands.application.slash.GlobalSlashEvent.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.commands.application.slash
import io.github.freya022.botcommands.api.commands.ratelimit.CancellableRateLimit
import io.github.freya022.botcommands.api.core.BContext
import net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent
open class GlobalSlashEvent internal constructor(
val context: BContext,
private val event: SlashCommandInteractionEvent,
cancellableRateLimit: CancellableRateLimit
) : SlashCommandInteractionEvent(event.jda, event.responseNumber, event.interaction),
CancellableRateLimit by cancellableRateLimit {
override fun getRawData() = event.rawData
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy