file is deprecated, make some changes in emoji

This commit is contained in:
Daniel Odendahl Jr
2017-04-20 00:36:37 +00:00
parent fef35440b2
commit 2df6c08de4
8 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ module.exports = class MapCommand extends Command {
try {
const { body } = await request
.get(`https://maps.googleapis.com/maps/api/staticmap?center=${location}&zoom=${zoom}&size=500x500&key=${process.env.GOOGLE_KEY}`);
return message.channel.send({file: {attachment: body}});
return message.channel.send({files: [{attachment: body}]});
} catch (err) {
return message.say(':x: Error! Something went wrong! Make sure you entered the location correctly!');
}