CooldownMySQLProvider

Functions

Link copied to clipboard
abstract fun cooldownExists(@NotNull tablePrefix: @NotNull String, @NotNull cooldownType: @NotNull String, @NotNull cooldownOwner: @NotNull String): Boolean
Checks if a cooldown with the given type and owner exists in the database.
Link copied to clipboard
abstract fun createContainer(@NotNull prefix: @NotNull String)
Creates the container that will hold the cooldowns.
Link copied to clipboard
open fun createCooldown(@Nullable tablePrefix: @Nullable String, @NotNull cooldownType: @NotNull String, @NotNull cooldownOwner: @NotNull String, @NotNull cooldownExpiry: @NotNull Timestamp)
Creates a new cooldown with a random UUID in the database.
abstract fun createCooldown(@NotNull prefix: @NotNull String, @NotNull id: @NotNull String, @NotNull type: @NotNull String, @NotNull owner: @NotNull String, @NotNull expiry: @NotNull Timestamp)
Creates a new cooldown with the given UUID in the database.
Link copied to clipboard
abstract fun deleteCooldown(@NotNull prefix: @NotNull String, @NotNull type: @NotNull String, @NotNull owner: @NotNull String)
Delete a cooldown from the database
Link copied to clipboard
abstract fun getAllCooldowns(@NotNull prefix: @NotNull String): List<Cooldown>
Retrieves all cooldowns from the database.