CooldownProvider

Provides methods for accessing and manipulating cooldowns in the database.

Functions

Link copied to clipboard
abstract fun cooldownExists(@Nullable tablePrefix: @Nullable 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(@Nullable tablePrefix: @Nullable 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(@Nullable tablePrefix: @Nullable String, @NotNull id: @NotNull String, @NotNull cooldownType: @NotNull String, @NotNull cooldownOwner: @NotNull String, @NotNull cooldownExpiry: @NotNull Timestamp)
Creates a new cooldown with the given UUID in the database.
Link copied to clipboard
abstract fun deleteCooldown(@Nullable tablePrefix: @Nullable String, @NotNull cooldownType: @NotNull String, @NotNull cooldownOwner: @NotNull String)
Delete a cooldown from the database
Link copied to clipboard
abstract fun getAllCooldowns(@Nullable tablePrefix: @Nullable String): List<Cooldown>
Retrieves all cooldowns from the database.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard