io.github.freya022.botcommands.api.commands.CommandInfo.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
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
}