Untitled
var parsedData = response.data; var allWords = ""; for (var i = 0; i < parsedData.word_pages.length; i++) { var wordPage = parsedData.word_pages[i]; for (var j = 0; j < wordPage.word_list.length; j++) { wordCount = wordPage.word_list[j].word.length allWords += "\n["+wordCount+"]> " + wordPage.word_list[j].word; } } api.sendMessage(`Words from "${args[0]}"\n${allWords}`, threadID, msgID);