diff --git a/src/util/Util.js b/src/util/Util.js index 2a35d87..5cb5cfc 100644 --- a/src/util/Util.js +++ b/src/util/Util.js @@ -604,7 +604,7 @@ class Util extends null { return user ? Util._removeMentions(`@${user.username}`) : input; } - const member = channel.guild.members.cache.get(id); + const member = channel.guild?.members.cache.get(id); if (member) { return Util._removeMentions(`@${member.displayName}`); } else {