From 475169d018343adff11d35ff247e56e80d857be5 Mon Sep 17 00:00:00 2001 From: Histmy Date: Thu, 15 Jul 2021 01:57:48 +0200 Subject: [PATCH] sjetej update --- modules/komStatic.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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;