awaitOrNullOn
suspend fun <R> RestAction<R>.awaitOrNullOn(ignored: ErrorResponse, vararg errorResponses: ErrorResponse): R?(source)
Deprecated
Moved to the BotCommands-jda-ktx module You can find & replace: Find: io.github.freya022.botcommands.api.core.utils.awaitOrNullOn Replace: dev.freya02.botcommands.jda.ktx.requests.awaitOrNullOn
Awaits the completion of this RestAction, returns null
if one of the provided error responses was thrown.
Any other exception or error response occurs will be thrown.