Skip to content
Snippets Groups Projects
Commit e8eb2450 authored by Sofiane Lasri's avatar Sofiane Lasri
Browse files

!= null

parent b0f2a07e
Branches
No related tags found
No related merge requests found
......@@ -647,7 +647,7 @@ function sendMessageFromMcChat(username, message) {
if (match){
var member = match[1].trim();
var memberFetch = client.users.cache.find(user => user.username == member);
if (memberFetch){
if (memberFetch != null){
message = message.replace("@"+member, "<@" + memberFetch.id + ">");
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment