CommandId

@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class CommandId(val value: String)(source)

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.

See also

@DeclarationFilter

Properties

Link copied to clipboard