GuildJsonProvider

Created by GlareMasters Date: 7/18/2018 Time: 11:38 AM

Constructors

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

Functions

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