-
Methods Method Description com.github.alex1304.ultimategdbot.api.Bot.logStackTrace(Context, Throwable) See BotUtils#debugError for a more standardized and reusable format.com.github.alex1304.ultimategdbot.api.Context.getGuildSettings() This method returns the values as strings, for view only. It doesnt allow retrieving the raw values, so it isn't relevant to have this method in the Context object. Also, it makes one different database transaction for each guild setting, so there are performance issues as well.com.github.alex1304.ultimategdbot.api.Context.setGuildSetting(String, String) This method only supports setting new values from their string conversion. It doesn't allow a lot of flexibility, and it isn't relevant to have a such method in the Context object to begin with. The recommended way to change a guild setting is by iterating through all plugins (Bot#getPlugins), checking for each plugin if key exists, and using the appropriate value setter on the found entry.com.github.alex1304.ultimategdbot.api.Database.findByIDOrCreate(Class<T>, K, BiConsumer<? super T, K>) The use of this method is not as convenient as expected when it was first designed. It is better to call findByID and then process the case where it's not found via a switchIfEmpty operator.com.github.alex1304.ultimategdbot.api.database.GuildSettingsEntry.valueAsStringToDatabase(Database, String, long) com.github.alex1304.ultimategdbot.api.database.GuildSettingsEntry.valueFromDatabase(Database, long) com.github.alex1304.ultimategdbot.api.database.GuildSettingsEntry.valueFromDatabaseAsString(Database, long) com.github.alex1304.ultimategdbot.api.database.GuildSettingsEntry.valueToDatabase(Database, D, long)