refactor: codebase cleanup + critical player state bug fixes

This commit is contained in:
NoLogicAlan committed 2026-06-20 17:36:29 +03:00
1 parent 82aa296fbc
commit fbf725d29f
15 files changed
+166 -184

No files matched your search

+2 -2
View File
@@ -40,7 +40,7 @@ export const command = new CommandBuilder()
.setRequired(false)
);
function notConfigured(prefix, t, guildId) {
function notConfigured(t, guildId) {
return {
embeds: [new EmbedBuilder()
.setColor(ERROR_COLOR)
@@ -156,7 +156,7 @@ export async function run(msg, data) {
case "check":
case "voters": {
if (!fluxerlist || !fluxerlist.enabled) return msg.reply(notConfigured(prefix, t, guildId));
if (!fluxerlist || !fluxerlist.enabled) return msg.reply(notConfigured(t, guildId));
const resolvedType = type || "bot";
const id = resourceId || (resolvedType === "server" ? fluxerlist.serverId : fluxerlist.botId);