toggle menu
BotCommands
JVM
switch theme
search in API
BotCommands
/
io.github.freya022.botcommands.api.core.service
/
ServiceResult
Service
Result
class
ServiceResult
<
out
T
:
Any
>
(
source
)
Members
Types
Companion
Link copied to clipboard
object
Companion
Properties
service
Link copied to clipboard
val
service
:
T
?
service
Error
Link copied to clipboard
val
serviceError
:
ServiceError
?
Functions
equals
Link copied to clipboard
open
operator override
fun
equals
(
other
:
Any
?
)
:
Boolean
get
Or
Null
Link copied to clipboard
fun
getOrNull
(
)
:
T
?
get
Or
Throw
Link copied to clipboard
fun
getOrThrow
(
)
:
T
fun
getOrThrow
(
block
:
(
error
:
ServiceError
)
->
Nothing
)
:
T
hash
Code
Link copied to clipboard
open
override
fun
hashCode
(
)
:
Int
on
Error
Link copied to clipboard
inline
fun
onError
(
block
:
ServiceResult
<
T
>
.
(
serviceError
:
ServiceError
)
->
Unit
)
:
ServiceResult
<
T
>
on
Service
Link copied to clipboard
inline
fun
onService
(
block
:
ServiceResult
<
T
>
.
(
service
:
T
)
->
Unit
)
:
ServiceResult
<
T
>
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String