From 077f087ca09822b9bd13df0692f8d27bf542daa6 Mon Sep 17 00:00:00 2001 From: Elysia <71698422+aiko-chan-ai@users.noreply.github.com> Date: Wed, 14 Feb 2024 08:00:56 +0700 Subject: [PATCH] fix: clean content #1049 --- src/util/Util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {