cooldownExists

open fun cooldownExists(@Nullable tablePrefix: @Nullable String, @NotNull cooldownType: @NotNull String, @NotNull cooldownOwner: @NotNull String): Boolean(source)

Checks if a cooldown with the given type and owner exists in the database.

Return

`true` if a cooldown with the given type and owner exists, `false` otherwise

Parameters

tablePrefix

the prefix to be used for the table name, if any

cooldownType

the type of the cooldown

cooldownOwner

the owner of the cooldown as a UUID

Throws

if there is an error checking for the cooldown