From 93810518ab71d4a4198fad79644c82a66322d637 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Mon, 21 Apr 2025 17:39:19 -0600 Subject: [PATCH] guildinfo: i may be stupid --- src/modules/utility/guildinfo.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/utility/guildinfo.js b/src/modules/utility/guildinfo.js index ed522c1..f9b3c6c 100644 --- a/src/modules/utility/guildinfo.js +++ b/src/modules/utility/guildinfo.js @@ -75,8 +75,8 @@ guildinfo.callback = async function (msg, line, args, {nolocal, debug}) { try { clan = await hf.bot.requestHandler.request("GET", APIEndpoints.CLAN(snowflake), true); if (!clan) { - if (guild?.profile) { - clan = guild?.profile; + if (_guild?.profile) { + clan = _guild?.profile; } else { const verif = await hf.bot.requestHandler.request( "GET", @@ -85,10 +85,10 @@ guildinfo.callback = async function (msg, line, args, {nolocal, debug}) { ); if (verif?.profile) { clan = verif.profile; - } else if (guild?.vanityURL) { + } else if (_guild?.vanityURL) { const invite = await hf.bot.requestHandler.request( "GET", - `${APIEndpoints.INVITE(guild.vanityURL)}?with_counts=true&with_expiration=true` + `${APIEndpoints.INVITE(_guild.vanityURL)}?with_counts=true&with_expiration=true` ); if (invite?.profile) clan = invite.profile; }