utility.guildinfo: passed to wrong getGuild call

This commit is contained in:
Cynthia Foxwell 2024-07-29 19:58:00 -06:00
parent 9bfd194285
commit 703a92383a

View file

@ -39,13 +39,13 @@ guildinfo.callback = async function (msg, line, args, {nolocal}) {
if (__guild) {
_guild = {source: "local", data: __guild};
} else {
_guild = await getGuild(msg.guildID, nolocal);
_guild = await getGuild(msg.guildID);
}
id = msg.guildID;
} else {
if (!SNOWFLAKE_REGEX.test(line)) return "Not a snowflake.";
const snowflake = line.match(SNOWFLAKE_REGEX)[1];
_guild = await getGuild(snowflake);
_guild = await getGuild(snowflake, nolocal);
id = snowflake;
try {