runIgnoringResponseOrNull

inline fun <R> runIgnoringResponseOrNull(ignored: ErrorResponse, vararg ignoredResponses: ErrorResponse, block: () -> R): R?(source)

Deprecated

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

Runs the specified function block and returns null on error responses that corresponds to an ignored response.

Any other exception is still thrown.

See also