change default invites enabled seting to true
This commit is contained in:
@@ -37,7 +37,7 @@ public class SqliteStorage implements Storage {
|
|||||||
connection.createStatement().execute("""
|
connection.createStatement().execute("""
|
||||||
CREATE TABLE IF NOT EXISTS guild_settings (
|
CREATE TABLE IF NOT EXISTS guild_settings (
|
||||||
guild_id LONG PRIMARY KEY,
|
guild_id LONG PRIMARY KEY,
|
||||||
invites_enabled BOOLEAN NOT NULL DEFAULT FALSE
|
invites_enabled BOOLEAN NOT NULL DEFAULT TRUE
|
||||||
);
|
);
|
||||||
"""
|
"""
|
||||||
);
|
);
|
||||||
@@ -62,7 +62,7 @@ public class SqliteStorage implements Storage {
|
|||||||
boolean invitesEnabled = resultSet.getBoolean("invites_enabled");
|
boolean invitesEnabled = resultSet.getBoolean("invites_enabled");
|
||||||
return new GuildSettings(guildId, invitesEnabled);
|
return new GuildSettings(guildId, invitesEnabled);
|
||||||
}
|
}
|
||||||
return new GuildSettings(guildId,false);
|
return new GuildSettings(guildId,true);
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
throw new RuntimeException("Failed to retrieve guild settings", e);
|
throw new RuntimeException("Failed to retrieve guild settings", e);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user