From 0ada2e43b46cf0924a335f316002c1e0c2c25c01 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Thu, 4 May 2017 02:49:03 +0000 Subject: [PATCH] Can do that --- commands/search/map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/search/map.js b/commands/search/map.js index c88e0d8b..1df37451 100644 --- a/commands/search/map.js +++ b/commands/search/map.js @@ -38,7 +38,7 @@ module.exports = class MapCommand extends Command { try { const { body } = await request .get(`https://maps.googleapis.com/maps/api/staticmap?center=${query}&zoom=${zoom}&size=500x500&key=${process.env.GOOGLE_KEY}`); - return msg.channel.send({ files: [{attachment: body}] }) + return msg.channel.send({ files: [{ attachment: body, name: 'map.png' }] }) .catch(err => msg.say(`An Error Occurred: ${err}`)); } catch(err) { return msg.say('An Error Occurred. The location may not have been found.');