ChallengeJsonProvider

Constructors

Link copied to clipboard
open fun ChallengeJsonProvider(dataFolder: File)

Functions

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