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

io.github.freya022.botcommands.api.commands.application.diff.DiffEngine.kt Maven / Gradle / Ivy

Go to download

A Kotlin-first (and Java) framework that makes creating Discord bots a piece of cake, using the JDA library.

There is a newer version: 3.0.0-alpha.18
Show newest version
package io.github.freya022.botcommands.api.commands.application.diff

import io.github.freya022.botcommands.api.core.config.application.cache.ApplicationCommandsCacheConfig
import io.github.freya022.botcommands.internal.commands.application.diff.ApplicationCommandDiffEngine
import io.github.freya022.botcommands.internal.commands.application.diff.NewApplicationCommandDiffEngine
import io.github.freya022.botcommands.internal.commands.application.diff.OldApplicationCommandDiffEngine
import io.github.freya022.botcommands.internal.commands.application.diff.OldRefactoredApplicationCommandDiffEngine

/**
 * Represents predefined implementation of an application command diff engine.
 *
 * @see ApplicationCommandsCacheConfig.diffEngine
 */
enum class DiffEngine(@get:JvmSynthetic internal val instance: ApplicationCommandDiffEngine) {
    /**
     * Good ol' engine.
     */
    @Deprecated(message = "Only use this if there is a bug with the new engine, may be removed in a future release.")
    OLD(OldApplicationCommandDiffEngine),

    /**
     * Provides even more logs.
     */
    @Deprecated(message = "Only use this if there is a bug with the new engine, may be removed in a future release.")
    OLD_REFACTORED(OldRefactoredApplicationCommandDiffEngine),

    /**
     * Cleaner logs with what exactly changed.
     */
    NEW(NewApplicationCommandDiffEngine)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy