small bug in DM

This commit is contained in:
Neko Life 2021-05-16 10:18:34 +00:00
parent 30082e91db
commit 629cdb86fd

View file

@ -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 {