register

abstract suspend fun register(command: SlashCommand<*, *, *>): SlashCommand<*, *, *>?

Register a SlashCommand to the registry.

This method is only called after the initialize method and allows runtime modifications.


abstract suspend fun register(command: MessageCommand<*, *>): MessageCommand<*, *>?

Register a MessageCommand to the registry.

This method is only called after the initialize method and allows runtime modifications.


abstract suspend fun register(command: UserCommand<*, *>): UserCommand<*, *>?

Register a UserCommand to the registry.

This method is only called after the initialize method and allows runtime modifications.


open suspend fun ChatInputCreateBuilder.register(locale: Locale, command: SlashCommand<*, *, *>)

Registration logic for slash commands, extracted for clarity.


open fun MessageCommandCreateBuilder.register(locale: Locale, command: MessageCommand<*, *>)
open fun GlobalMessageCommandCreateBuilder.register(locale: Locale, command: MessageCommand<*, *>)

Registration logic for message commands, extracted for clarity.


open fun UserCommandCreateBuilder.register(locale: Locale, command: UserCommand<*, *>)
open fun GlobalUserCommandCreateBuilder.register(locale: Locale, command: UserCommand<*, *>)

Registration logic for user commands, extracted for clarity.