From 939a6db3e5d79fdd30596a13a43c4c139db9b811 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Fri, 2 Apr 2021 20:44:46 -0500 Subject: [PATCH] Add missing parenthesis --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index e324547..c3c5e29 100644 --- a/index.js +++ b/index.js @@ -117,7 +117,7 @@ async function ban(message) { const members = message.guild.members.cache.filter(member => { if (member.nickname) { - return member.user.username.toLowerCase().includes(message.content.split(" ")[1].toLowerCase() || member.nickname.toLowerCase().includes(message.content.split(" ")[1].toLowerCase()); + return member.user.username.toLowerCase().includes(message.content.split(" ")[1].toLowerCase()) || member.nickname.toLowerCase().includes(message.content.split(" ")[1].toLowerCase()); } else { return member.user.username.toLowerCase().includes(message.content.split(" ")[1].toLowerCase()) }