From abef37c97f2e78ae8af7c7a4512c50375c57b585 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Fri, 14 May 2021 10:28:26 -0500 Subject: [PATCH] Attempt to map array to names --- bot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.js b/bot.js index b3fbfc9..dc05a5e 100644 --- a/bot.js +++ b/bot.js @@ -374,7 +374,7 @@ async function locateISS(message) { await fetch ("http://api.open-notify.org/astros.json") .then(request => request.json()) .then(data => { - issEmbed.addField(`Astronauts`, `${data.people.join(" • ")}`); + issEmbed.addField(`Astronauts`, `${data.people.map(e => e.name).join(" • ")}`); message.channel.send(issEmbed); }); });