DefaultSlashCommandClient

open class DefaultSlashCommandClient(packageName: String) : SlashCommandClient, CoroutineScope

Types

Companion
Link copied to clipboard
object Companion

Functions

createContext
Link copied to clipboard
open suspend fun createContext(event: SlashCommandEvent, command: BaseSlashCommand): SlashCommandContext
getCommand
Link copied to clipboard
open fun getCommand(name: String): BaseSlashCommand?
onEvent
Link copied to clipboard
open override fun onEvent(event: GenericEvent)
onPermissionsLackException
Link copied to clipboard
open fun onPermissionsLackException(ex: PermissionsLackException)
onSlashCommandEvent
Link copied to clipboard
open override fun onSlashCommandEvent(event: SlashCommandEvent)
withJDA
Link copied to clipboard
open fun withJDA(jda: JDA)
withMetrics
Link copied to clipboard
open fun withMetrics()
withShardManager
Link copied to clipboard
open fun withShardManager(shardManager: ShardManager)

Properties

coroutineContext
Link copied to clipboard
open override val coroutineContext: CoroutineContext
registry
Link copied to clipboard
open override val registry: List<BaseSlashCommand>