fix: clean content #1049
This commit is contained in:
parent
b06f0fdc33
commit
077f087ca0
@ -604,7 +604,7 @@ class Util extends null {
|
|||||||
return user ? Util._removeMentions(`@${user.username}`) : input;
|
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) {
|
if (member) {
|
||||||
return Util._removeMentions(`@${member.displayName}`);
|
return Util._removeMentions(`@${member.displayName}`);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user