diff --git a/modules/komStatic.js b/modules/komStatic.js index 032dc40..220ed36 100644 --- a/modules/komStatic.js +++ b/modules/komStatic.js @@ -1,7 +1,5 @@ // Sekce pro komandy, který jenom pošlou nějaký hovno bez a nevyžadují argumenty -const { MessageEmbed } = require("discord.js"); - const pomoc = JSON.parse(require('fs').readFileSync('addons/pomoc.json')); module.exports = { @@ -64,10 +62,13 @@ module.exports = { case "počasí": case "pocasi": - const embed = new MessageEmbed() - .setTitle("Počasí") - .attachFiles("https://util.deadfish.cz/morepocasi/v/49.4348358/12.8147250/pocasi.png") - .setImage("attachment://pocasi.png"); + const embed = { + title: "Počasí", + image: { url: "attachment://pocasi.png" } + }; + + mes.channel.send({ embed, files: ["https://util.deadfish.cz/morepocasi/v/49.4348358/12.8147250/pocasi.png"] }); + break; mes.channel.send({ embed }); break;