mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 05:04:58 +05:00
Фикс
This commit is contained in:
parent
7c5655b0ef
commit
d3f263384a
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ class Whois extends BaseCommand {
|
||||||
await interaction.deferReply();
|
await interaction.deferReply();
|
||||||
const ip = interaction.options.getString("ip");
|
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());
|
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()
|
const embed = new EmbedBuilder()
|
||||||
.setTitle(interaction.translate("general/whois:INFO_ABOUT", {
|
.setTitle(interaction.translate("general/whois:INFO_ABOUT", {
|
||||||
ip
|
ip
|
||||||
|
|
Loading…
Reference in a new issue