refactor naming
This commit is contained in:
@@ -2,7 +2,7 @@ package me.youhavetrouble.inviter.discord;
|
|||||||
|
|
||||||
public record GuildSettings(
|
public record GuildSettings(
|
||||||
long guildId,
|
long guildId,
|
||||||
boolean apiEnabled
|
boolean invitesEnabled
|
||||||
) {
|
) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ public class ApiStatusChangeCommand extends Command {
|
|||||||
if (statusMapping == null) {
|
if (statusMapping == null) {
|
||||||
GuildSettings setings = Main.getStorage().getGuildSettings(guild.getIdLong());
|
GuildSettings setings = Main.getStorage().getGuildSettings(guild.getIdLong());
|
||||||
|
|
||||||
String message = setings.apiEnabled() ?
|
String message = setings.invitesEnabled() ?
|
||||||
"Inviter is currently __**enabled**__ for this server." :
|
"Inviter is currently __**enabled**__ for this server." :
|
||||||
"Inviter is currently __**disabled**__ for this server.";
|
"Inviter is currently __**disabled**__ for this server.";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user