From 02f165d00839c446b011092f4336eedac7f0003c Mon Sep 17 00:00:00 2001 From: bignutty <3515180-bignutty@users.noreply.gitlab.com> Date: Fri, 7 Jun 2024 22:52:14 +0200 Subject: [PATCH] wwoops --- commands/message/dev/reload.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/commands/message/dev/reload.js b/commands/message/dev/reload.js index 7f0e260..54285e9 100644 --- a/commands/message/dev/reload.js +++ b/commands/message/dev/reload.js @@ -18,13 +18,9 @@ module.exports = { await context.triggerTyping(); const time = Date.now(); console.log(`v2 | command refresh requested @ ${Date.now()} by ${context.user.username}${context.user.discriminator} (${context.user.id})`) - let includeSlash = false; - if(context.message.content.includes("-s")){ - includeSlash = true; - } let data; - if(includeSlash) data = await context.manager.broadcastEval(async (cluster) => { - if (cluster.interactionCommandClient && includeSlash){ + if(context.message.content.includes("-s")) data = await context.manager.broadcastEval(async (cluster) => { + if (cluster.interactionCommandClient){ const interactionClient = cluster.interactionCommandClient; interactionClient.clear();