create Cooldown
abstract fun createCooldown(@NotNull prefix: @NotNull String, @NotNull id: @NotNull String, @NotNull type: @NotNull String, @NotNull owner: @NotNull String, @NotNull expiry: @NotNull Timestamp)(source)
Creates a new cooldown with the given UUID in the database.
Parameters
table Prefix
the prefix to be used for the table name, if any
id
the UUID for the cooldown
cooldown Type
the type of the cooldown
cooldown Owner
the owner of the cooldown as a UUID
cooldown Expiry
the time when the cooldown will expire in milliseconds since the epoch
Throws
if there is an error creating the cooldown