From d3f263384af629e476e944f682d5e29c581070ac Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Fri, 5 Aug 2022 18:18:43 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/General/whois.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/General/whois.js b/commands/General/whois.js index 9cd006f5..21a7fe52 100644 --- a/commands/General/whois.js +++ b/commands/General/whois.js @@ -38,7 +38,7 @@ class Whois extends BaseCommand { await interaction.deferReply(); const ip = interaction.options.getString("ip"); const whois = await fetch(`http://ip-api.com/json/${ip}?fields=status,message,continent,continentCode,country,countryCode,region,regionName,city,zip,timezone,currency,isp,org,as,mobile,proxy,hosting,query`).then(response => response.json()); - if (whois.status === "fail") return interaction.reply({ content: interaction.translate("general/whois:ERROR", { ip }) }); + if (whois.status === "fail") return interaction.editReply({ content: interaction.translate("general/whois:ERROR", { ip }) }); const embed = new EmbedBuilder() .setTitle(interaction.translate("general/whois:INFO_ABOUT", { ip