From 629cdb86fd68937fbde26fbbf6a50e224e310060 Mon Sep 17 00:00:00 2001 From: Neko Life Date: Sun, 16 May 2021 10:18:34 +0000 Subject: [PATCH] small bug in DM --- cmds/utility/avatar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmds/utility/avatar.js b/cmds/utility/avatar.js index a04358e..c1f44f2 100644 --- a/cmds/utility/avatar.js +++ b/cmds/utility/avatar.js @@ -55,7 +55,7 @@ module.exports = class avatar extends commando.Command { if (uID.length > 0) { let ree = []; if (/^\d{17,19}$/.test(uID)) { - const findmem = msg.guild.member(uID); + const findmem = msg.guild?.member(uID); if (findmem) { ree.push(findmem.user); } else {