From 78513f99ed755154837d9d3ec5cd65c86bd7aadf Mon Sep 17 00:00:00 2001 From: Vermium Sifell Date: Wed, 13 Apr 2022 21:19:38 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=B7=EF=B8=8F=20remove=20"as=20string"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/utilities/modules/lookup.ts | 34 ++++++++++++------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/plugins/utilities/modules/lookup.ts b/src/plugins/utilities/modules/lookup.ts index 4e2e68b..677ff92 100644 --- a/src/plugins/utilities/modules/lookup.ts +++ b/src/plugins/utilities/modules/lookup.ts @@ -31,12 +31,12 @@ export default async (interaction: CommandInteraction) => { // Create embed object const embed = { title: ":hammer: Utilities - Lookup", - description: `${res?.data?.message}: ${res?.data?.query}` as string, + description: `${res?.data?.message}: ${res?.data?.query}`, color: errorColor, timestamp: new Date(), footer: { - iconURL: footerIcon as string, - text: footerText as string, + iconURL: footerIcon, + text: footerText, }, }; @@ -52,58 +52,58 @@ export default async (interaction: CommandInteraction) => { fields: [ { name: "AS", - value: `${res?.data?.as || "Not available"}` as string, + value: `${res?.data?.as || "Not available"}`, }, { name: "Country", - value: `${res?.data?.country || "Not available"}` as string, + value: `${res?.data?.country || "Not available"}`, }, { name: "Country Code", - value: `${res?.data?.countryCode || "Not available"}` as string, + value: `${res?.data?.countryCode || "Not available"}`, }, { name: "Region", - value: `${res?.data?.region || "Not available"}` as string, + value: `${res?.data?.region || "Not available"}`, }, { name: "Region Name", - value: `${res?.data?.regionName || "Not available"}` as string, + value: `${res?.data?.regionName || "Not available"}`, }, { name: "City", - value: `${res?.data?.city || "Not available"}` as string, + value: `${res?.data?.city || "Not available"}`, }, { name: "ZIP Code", - value: `${res?.data?.zip || "Not available"}` as string, + value: `${res?.data?.zip || "Not available"}`, }, { name: "Latitude", - value: `${res?.data?.lat || "Not available"}` as string, + value: `${res?.data?.lat || "Not available"}`, }, { name: "Longitude", - value: `${res?.data?.lon || "Not available"}` as string, + value: `${res?.data?.lon || "Not available"}`, }, { name: "Timezone", - value: `${res?.data?.timezone || "Not available"}` as string, + value: `${res?.data?.timezone || "Not available"}`, }, { name: "ISP", - value: `${res?.data?.isp || "Not available"}` as string, + value: `${res?.data?.isp || "Not available"}`, }, { name: "Organization", - value: `${res?.data?.org || "Not available"}` as string, + value: `${res?.data?.org || "Not available"}`, }, ], color: successColor, timestamp: new Date(), footer: { - iconURL: footerIcon as string, - text: footerText as string, + iconURL: footerIcon, + text: footerText, }, };