mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 05:51:35 +02:00
file is deprecated, make some changes in emoji
This commit is contained in:
@@ -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!');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user