From aa15b7b463419c1e462723d0da4bd376b2ce6b55 Mon Sep 17 00:00:00 2001 From: *x1 Date: Tue, 28 May 2024 20:18:58 +0200 Subject: [PATCH] Uptime --- commands/bot control/uptime.js | 2 +- events/interactionCreate.js | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/commands/bot control/uptime.js b/commands/bot control/uptime.js index 1b5f22e..7cb14fa 100644 --- a/commands/bot control/uptime.js +++ b/commands/bot control/uptime.js @@ -1,4 +1,4 @@ -const { ButtonStyle, ButtonBuilder, ActionRowBuilder } = require('discord.js'); +const { EmbedBuilder, ButtonStyle, ButtonBuilder, ActionRowBuilder } = require('discord.js'); module.exports = { aliases: ['upt'], diff --git a/events/interactionCreate.js b/events/interactionCreate.js index 5b08b20..4b205d5 100644 --- a/events/interactionCreate.js +++ b/events/interactionCreate.js @@ -6,8 +6,6 @@ module.exports = { name: Events.InteractionCreate, async execute(client, interaction) { - if (!interaction.isButton()) return - if (interaction.customId === "lvl_Recomp_Rep") { const lvl = interaction.message.embeds[0].fields[0].value const serv = interaction.message.embeds[0].fields[1].value