From 453bf35803911044e914d53c5c0a227c637a815c Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Sun, 4 Jul 2021 13:17:45 +0200 Subject: [PATCH] Make code a tiny bit cleaner --- util/parseMention.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/util/parseMention.js b/util/parseMention.js index cb0b71c..67dbfa1 100644 --- a/util/parseMention.js +++ b/util/parseMention.js @@ -1,10 +1,7 @@ module.exports = function (text, guild) { let id = ""; let isMention = false; - if ( - text.substring(0, 2) == "<@" && - text.substring(text.length - 1, text.length) == ">" - ) { + if (text.substring(0, 2) == "<@" && text.substring(text.length - 1, text.length) == ">") { let start = 2; if (text.substring(0, 3) == "<@!") start = 3; id = text.substring(start, text.length - 1);