io.github.freya022.botcommands.internal.utils.TimeoutExceptionAccessor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of BotCommands Show documentation
Show all versions of BotCommands Show documentation
A Kotlin-first (and Java) framework that makes creating Discord bots a piece of cake, using the JDA library.
package io.github.freya022.botcommands.internal.utils;
import kotlinx.coroutines.TimeoutCancellationException;
import org.jetbrains.annotations.NotNull;
public class TimeoutExceptionAccessor {
@NotNull
public static TimeoutCancellationException createComponentTimeoutException() {
return new TimeoutCancellationException("Timed out waiting for component");
}
@NotNull
public static TimeoutCancellationException createModalTimeoutException() {
return new TimeoutCancellationException("Timed out waiting for modal");
}
}