fix: clean content #1049

This commit is contained in:
Elysia 2024-02-14 08:00:56 +07:00
parent b06f0fdc33
commit 077f087ca0

View File

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