GuildProvider

A provider interface for guild data management.

Functions

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

Inheritors

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