utility.guildinfo: fix missing await on getGuild

This commit is contained in:
Cynthia Foxwell 2023-10-20 13:33:41 -06:00
parent 6c08af5aa9
commit 6ed702f06b

View file

@ -1777,7 +1777,7 @@ guildinfo.callback = async function (msg, line) {
_guild = {source: "local", data: msg.channel.guild};
} else {
if (!SNOWFLAKE_REGEX.test(line)) return "Not a snowflake.";
_guild = getGuild(line);
_guild = await getGuild(line);
}
const guild = _guild.data;