utility.guildinfo: null check getGuild return

This commit is contained in:
Cynthia Foxwell 2023-10-20 13:36:01 -06:00
parent 6ed702f06b
commit 49d2fe849a

View file

@ -1780,6 +1780,8 @@ guildinfo.callback = async function (msg, line) {
_guild = await getGuild(line);
}
if (!_guild) return "Guild not found.";
const guild = _guild.data;
switch (_guild.source) {
case "local": {