diff --git a/commands/avataredit/3000years.js b/commands/avataredit/3000years.js index 5d52b0ab..be80b929 100644 --- a/commands/avataredit/3000years.js +++ b/commands/avataredit/3000years.js @@ -37,7 +37,7 @@ module.exports = class YearsCommand extends Command { years.blit(avatar, 461, 127); years.getBuffer(Jimp.MIME_PNG, (err, buff) => { if (err) return message.say(':x: Error! Something went wrong!'); - return message.channel.send({file: buff}); + return message.channel.sendFile(buff); }); } }; diff --git a/commands/avataredit/beautiful.js b/commands/avataredit/beautiful.js index 8d55a546..a4b3c7dd 100644 --- a/commands/avataredit/beautiful.js +++ b/commands/avataredit/beautiful.js @@ -39,7 +39,7 @@ module.exports = class BeautifulCommand extends Command { beautiful.blit(avatar, 451, 434); beautiful.getBuffer(Jimp.MIME_PNG, (err, buff) => { if (err) return message.say(':x: Error! Something went wrong!'); - return message.channel.send({file: buff}); + return message.channel.sendFile(buff); }); } }; diff --git a/commands/avataredit/bobross.js b/commands/avataredit/bobross.js index 4a582dd4..a37aec56 100644 --- a/commands/avataredit/bobross.js +++ b/commands/avataredit/bobross.js @@ -41,7 +41,7 @@ module.exports = class BobRossCommand extends Command { nothing.composite(bob, 0, 0); nothing.getBuffer(Jimp.MIME_PNG, (err, buff) => { if (err) return message.say(':x: Error! Something went wrong!'); - return message.channel.send({file: buff}); + return message.channel.sendFile(buff); }); } }; diff --git a/commands/avataredit/rip.js b/commands/avataredit/rip.js index 892b7f32..a96774ae 100644 --- a/commands/avataredit/rip.js +++ b/commands/avataredit/rip.js @@ -38,7 +38,7 @@ module.exports = class RIPCommand extends Command { gravestone.blit(avatar, 60, 65); gravestone.getBuffer(Jimp.MIME_PNG, (err, buff) => { if (err) return message.say(':x: Error! Something went wrong!'); - return message.channel.send({file: buff}); + return message.channel.sendFile(buff); }); } }; diff --git a/commands/avataredit/steamcard.js b/commands/avataredit/steamcard.js index 17fb80d8..3c4aea4c 100644 --- a/commands/avataredit/steamcard.js +++ b/commands/avataredit/steamcard.js @@ -42,7 +42,7 @@ module.exports = class SteamCardCommand extends Command { nothing.print(font, 38, 20, userDisplayName); nothing.getBuffer(Jimp.MIME_PNG, (err, buff) => { if (err) return message.say(':x: Error! Something went wrong!'); - return message.channel.send({file: buff}); + return message.channel.sendFile(buff); }); } }; diff --git a/commands/search/map.js b/commands/search/map.js index f9ab0680..9db0dd36 100644 --- a/commands/search/map.js +++ b/commands/search/map.js @@ -40,7 +40,7 @@ module.exports = class MapCommand extends Command { try { const response = await snekfetch .get(`https://maps.googleapis.com/maps/api/staticmap?center=${location}&zoom=${zoom}&size=500x500&key=${process.env.GOOGLE_KEY}`); - return message.channel.send({file: response.body}); + return message.channel.sendFile(response.body); } catch (err) { return message.say(':x: Error! Something went wrong! Make sure you entered the location correctly!');