From 22079fcc4edddf4f60114e80759d1ba6444d6b0b Mon Sep 17 00:00:00 2001 From: Supositware Date: Fri, 2 Sep 2022 22:31:53 +0200 Subject: [PATCH] Fix command with args --- events/client/messageCreate.js | 1 + 1 file changed, 1 insertion(+) diff --git a/events/client/messageCreate.js b/events/client/messageCreate.js index 5dd668de..3871b57b 100644 --- a/events/client/messageCreate.js +++ b/events/client/messageCreate.js @@ -371,6 +371,7 @@ export default { const args = {}; for (let i = 0; i < command.data.options.length; i++) { + if (!messageArgs[i]) continue; const arg = command.data.options[i]; const type = arg.constructor.name.toLowerCase(); let payload = messageArgs[i];