
com.freya02.botcommands.api.commands.builder.CooldownStrategyBuilder.kt Maven / Gradle / Ivy
package com.freya02.botcommands.api.commands.builder
import com.freya02.botcommands.api.commands.CooldownScope
import com.freya02.botcommands.internal.commands.CooldownStrategy
import java.util.concurrent.TimeUnit
class CooldownStrategyBuilder internal constructor() {
var cooldown: Long = 0
var unit: TimeUnit = TimeUnit.SECONDS
var scope: CooldownScope = CooldownScope.USER
internal fun build(): CooldownStrategy {
return CooldownStrategy(cooldown, unit, scope)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy