utility.guildinfo: null check getGuild return
This commit is contained in:
parent
6ed702f06b
commit
49d2fe849a
1 changed files with 2 additions and 0 deletions
|
@ -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": {
|
||||
|
|
Loading…
Reference in a new issue