This question has already been answered:
- The second parameter instead of the first 2 responses
There is such a function:
function msg() { if(!message.content && message.attachments.first()) return {files:[message.attachments.first().proxyURL]} else if(message.content && !message.attachments.first()) return message.content else return message.content, {files:[message.attachments.first().proxyURL]} } The problem is that all the conditions work correctly, but in the third condition the function returns only what is written after the comma.
How do I return in full:
message.content, {files:[message.attachments.first().proxyURL]} instead:
{files:[message.attachments.first().proxyURL]}