ChallengeProvider

The `ChallengeProvider` interface provides methods for interacting with a database to manage challenges.

Functions

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

Inheritors

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