Make code a tiny bit cleaner
This commit is contained in:
parent
8b1a43e1bc
commit
453bf35803
1 changed files with 1 additions and 4 deletions
|
@ -1,10 +1,7 @@
|
||||||
module.exports = function (text, guild) {
|
module.exports = function (text, guild) {
|
||||||
let id = "";
|
let id = "";
|
||||||
let isMention = false;
|
let isMention = false;
|
||||||
if (
|
if (text.substring(0, 2) == "<@" && text.substring(text.length - 1, text.length) == ">") {
|
||||||
text.substring(0, 2) == "<@" &&
|
|
||||||
text.substring(text.length - 1, text.length) == ">"
|
|
||||||
) {
|
|
||||||
let start = 2;
|
let start = 2;
|
||||||
if (text.substring(0, 3) == "<@!") start = 3;
|
if (text.substring(0, 3) == "<@!") start = 3;
|
||||||
id = text.substring(start, text.length - 1);
|
id = text.substring(start, text.length - 1);
|
||||||
|
|
Loading…
Add table
Reference in a new issue