ChallengeMariaDBProvider

Functions

Link copied to clipboard
abstract fun challengeExists(@NotNull prefix: @NotNull String, @NotNull id: @NotNull String): Boolean
Checks whether a challenge with the specified id exists.
Link copied to clipboard
abstract fun createChallenge(@NotNull prefix: @NotNull String, id: String, data: String)
Saves a new challenge to the database.
Link copied to clipboard
abstract fun createContainer(@NotNull prefix: @NotNull String)
Creates the container that will hold challenges.
Link copied to clipboard
abstract fun deleteChallenge(@NotNull prefix: @NotNull String, @NotNull id: @NotNull String)
Deletes a challenge from the database
Link copied to clipboard
abstract fun getAllChallenges(@NotNull prefix: @NotNull String): Set<GuildChallenge>
Gets all challenges from the database.
Link copied to clipboard
abstract fun getChallenge(@NotNull prefix: @NotNull String, @NotNull id: @NotNull String): GuildChallenge
Gets a single challenge by id.
Link copied to clipboard
abstract fun updateChallenge(@NotNull prefix: @NotNull String, @NotNull id: @NotNull String, @NotNull data: @NotNull String)
Updates a challenge in the database.