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.slash.annotations.TopLevelSlashCommandData
/**
* Sets a **unique** command ID on an **annotated** application command function.
*
* **Note:** This only applies to top-level commands, for slash commands,
* this means the annotation needs to be used alongside [@TopLevelSlashCommandData][TopLevelSlashCommandData].
*
* @see DeclarationFilter @DeclarationFilter
*/
@Target(AnnotationTarget.FUNCTION)
@Retention(AnnotationRetention.RUNTIME)
annotation class CommandId(val value: String)