onErrorResponseException

Deprecated

Moved to the BotCommands-jda-ktx module You can find & replace: Find: io.github.freya022.botcommands.api.core.utils.onErrorResponseException Replace: dev.freya02.botcommands.jda.ktx.requests.onErrorResponseException

Runs the given block if the result is an ErrorResponseException.

This does not clear the exception.

Returns the original RestResult unchanged.