From f13c1f3ca2573b495d82da7d547e57c4225db357 Mon Sep 17 00:00:00 2001 From: Supositware Date: Mon, 12 Sep 2022 11:28:24 +0200 Subject: [PATCH] fix flag? --- events/client/messageCreate.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/events/client/messageCreate.js b/events/client/messageCreate.js index 4c210085..b091a87b 100644 --- a/events/client/messageCreate.js +++ b/events/client/messageCreate.js @@ -381,8 +381,7 @@ export default { else if (type.includes('attachment')) { payload = message.attachments.first(); } - - if (payload.startsWith('--')) { + else if (payload.startsWith('--')) { arg.name = payload.substring(2); payload = true; }