mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 06:42:50 +02:00
Fix that
This commit is contained in:
@@ -39,7 +39,7 @@ module.exports = class MapCommand extends Command {
|
||||
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, name: 'map.png' }] })
|
||||
.catch (err => msg.say(`An Error Occurred: ${err}`));
|
||||
.catch(err => msg.say(`An Error Occurred: ${err}`));
|
||||
} catch (err) {
|
||||
return msg.say(`An Error Occurred: ${err}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user