GuildSQLiteProvider

Functions

Link copied to clipboard
abstract fun createContainer(@NotNull prefix: @NotNull String)
Creates the container that will hold guilds.
Link copied to clipboard
abstract fun createGuild(@NotNull prefix: @NotNull String, id: String, data: String)
Saves a new Guild to the database.
Link copied to clipboard
abstract fun deleteGuild(@NotNull prefix: @NotNull String, @NotNull id: @NotNull String)
Deletes a guild from the database.
Link copied to clipboard
abstract fun getAllGuildIds(@NotNull tablePrefix: @NotNull String): List<String>
Gets all guild IDs from the database.
Link copied to clipboard
abstract fun getAllGuilds(@NotNull prefix: @NotNull String): List<Guild>
Gets all guilds from the database.
Link copied to clipboard
abstract fun getGuild(@NotNull prefix: @NotNull String, @NotNull id: @NotNull String): Guild
Gets a single guild by id.
Link copied to clipboard
abstract fun guildExists(@NotNull prefix: @NotNull String, @NotNull id: @NotNull String): Boolean
Checks whether a guild with the specified id exists.
Link copied to clipboard
abstract fun updateGuild(@NotNull prefix: @NotNull String, @NotNull id: @NotNull String, @NotNull data: @NotNull String)
Updates a Guild in the database.