diff --git a/events/client/messageCreate.js b/events/client/messageCreate.js index b091a87b..65a347e7 100644 --- a/events/client/messageCreate.js +++ b/events/client/messageCreate.js @@ -375,16 +375,17 @@ export default { const arg = command.data.options[i]; const type = arg.constructor.name.toLowerCase(); let payload = messageArgs[i]; - if (type.includes('mentionable')) { + + if (payload.startsWith('--')) { + arg.name = payload.substring(2); + payload = true; + } + else if (type.includes('mentionable')) { payload = message.mentions.members.first(); } else if (type.includes('attachment')) { payload = message.attachments.first(); } - else if (payload.startsWith('--')) { - arg.name = payload.substring(2); - payload = true; - } args[arg.name] = payload; }