io.github.freya022.botcommands.api.commands.application.annotations.CommandId.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.annotations
import io.github.freya022.botcommands.api.commands.application.ApplicationCommand
/**
* Sets an **unique** command ID on an **annotated** application command function.
*
* @see ApplicationCommand.getGuildsForCommandId
*/
@Target(AnnotationTarget.FUNCTION)
@Retention(AnnotationRetention.RUNTIME)
annotation class CommandId(val value: String)