All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.freya02.botcommands.internal.waiter.WaitingEvent.kt Maven / Gradle / Ivy

package com.freya02.botcommands.internal.waiter

import com.freya02.botcommands.api.waiter.CompletedFutureEvent
import net.dv8tion.jda.api.events.GenericEvent
import java.util.concurrent.CompletableFuture
import java.util.concurrent.TimeUnit
import java.util.function.Consumer
import java.util.function.Predicate

class WaitingEvent(
    val eventType: Class,
    val preconditions: List>,
    val onComplete: CompletedFutureEvent?,
    val onSuccess: Consumer?,
    val onTimeout: Runnable?,
    val onCancelled: Runnable?,
    val timeout: Long,
    val timeoutUnit: TimeUnit?
) {
    val completableFuture = CompletableFuture()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy