toggle menu
BotCommands
JVM
switch theme
search in API
BotCommands
/
io.github.freya022.botcommands.api.core
/
DefaultEmbedSupplier
/
DefaultProvider
/
MissingServiceCondition
Missing
Service
Condition
open
class
MissingServiceCondition
:
ConditionalServiceChecker
(
source
)
Members
Constructors
Missing
Service
Condition
Link copied to clipboard
constructor
(
)
Functions
check
Service
Availability
Link copied to clipboard
@
Nullable
open
fun
checkServiceAvailability
(
@
NotNull
serviceContainer
:
@
NotNull
ServiceContainer
,
@
NotNull
checkedClass
:
@
NotNull
Class
<
out
Any
>
)
:
@
Nullable
String
Checks if the given class can be instantiated, if an error message is returned, the service cannot be instantiated.