onErrorResponse
Deprecated
Moved to the BotCommands-jda-ktx module You can find & replace: Find: io.github.freya022.botcommands.api.core.utils.onErrorResponse Replace: dev.freya02.botcommands.jda.ktx.requests.onErrorResponse
Runs the given block if the result is an error response.
This does not clear the exception.
Returns the original RestResult
unchanged.
See also
inline fun <T> RestResult<T>.onErrorResponse(error: ErrorResponse, block: (ErrorResponseException) -> Unit): RestResult<T>(source)
Deprecated
Moved to the BotCommands-jda-ktx module You can find & replace: Find: io.github.freya022.botcommands.api.core.utils.onErrorResponse Replace: dev.freya02.botcommands.jda.ktx.requests.onErrorResponse
Runs the given block if the result is the specified error response.
This does not clear the exception.
Returns the original RestResult
unchanged.