Search in sources :

Example 1 with CancelType

use of com.sx4.bot.waiter.Waiter.CancelType in project Sx4 by sx4-discord-bot.

the class Waiter method cancel.

public void cancel(GenericEvent event, CancelType type) {
    this.future.completeExceptionally(new CancelException(event, type));
    this.delete();
}
Also used : CancelException(com.sx4.bot.waiter.exception.CancelException)

Aggregations

CancelException (com.sx4.bot.waiter.exception.CancelException)1