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

io.github.freya022.botcommands.api.commands.CommandInfo.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.18
Show newest version
package io.github.freya022.botcommands.api.commands

import io.github.freya022.botcommands.api.core.BContext
import io.github.freya022.botcommands.api.core.IDeclarationSiteHolder
import net.dv8tion.jda.api.Permission
import java.util.*

/**
 * Represents a text/application command.
 */
interface CommandInfo : INamedCommand, IDeclarationSiteHolder, IRateLimitHolder {
    /**
     * The main context.
     */
    val context: BContext

    /**
     * The permissions required for the caller to use this command.
     */
    val userPermissions: EnumSet

    /**
     * The permissions required for the bot to run this command.
     */
    val botPermissions: EnumSet
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy