All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.freya022.botcommands.api.commands.application.slash.GlobalSlashEvent.kt Maven / Gradle / Ivy

Go to download

A Kotlin-first (and Java) framework that makes creating Discord bots a piece of cake, using the JDA library.

There is a newer version: 3.0.0-alpha.22
Show newest version
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