mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
refactor: codebase cleanup + critical player state bug fixes
This commit is contained in:
1 parent
82aa296fbc
commit
fbf725d29f
15 files changed
+166
-184
No files matched your search
+2
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user