Challenge Provider
The `ChallengeProvider` interface provides methods for interacting with a database to manage challenges.
Functions
Link copied to clipboard
Checks whether a challenge with the specified id exists.
Link copied to clipboard
Saves a new challenge to the database.
Link copied to clipboard
Creates the container that will hold challenges.
Link copied to clipboard
Deletes a challenge from the database
Link copied to clipboard
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.