From d9e57a47e998b38349847500adef432ec93f8df3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Fri, 3 Sep 2021 03:46:44 +0300 Subject: [PATCH] Added empty image to make embeds same size --- src/client/commands/bug.js | 1 + src/client/commands/help.js | 1 + src/client/commands/invite.js | 1 + src/client/commands/list.js | 1 + src/client/commands/maintenance.js | 1 + src/client/commands/nowplaying.js | 1 + src/client/commands/play.js | 1 + src/client/commands/statistics.js | 1 + src/client/commands/status.js | 1 + src/client/commands/stop.js | 1 + src/client/events/messageCreate.js | 1 + src/client/restoreradio.js | 1 + 12 files changed, 12 insertions(+) diff --git a/src/client/commands/bug.js b/src/client/commands/bug.js index defdd97..78237ce 100644 --- a/src/client/commands/bug.js +++ b/src/client/commands/bug.js @@ -16,6 +16,7 @@ module.exports = { .setThumbnail("https://cdn.discordapp.com/emojis/" + client.messageEmojis["logo"].replace(/[^0-9]+/g, '')) .setColor(client.config.embedColor) .setDescription(message.bugDescription) + .setImage('https://waren.io/berriabot-temp-sa7a36a9xm6837br/images/empty-3.png') .setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, '')); interaction.reply({ diff --git a/src/client/commands/help.js b/src/client/commands/help.js index fc5b94c..016b267 100644 --- a/src/client/commands/help.js +++ b/src/client/commands/help.js @@ -25,6 +25,7 @@ module.exports = { .setThumbnail("https://cdn.discordapp.com/emojis/" + client.messageEmojis["logo"].replace(/[^0-9]+/g, '')) .setColor(client.config.embedColor) .setDescription(message.helpDescription) + .setImage('https://waren.io/berriabot-temp-sa7a36a9xm6837br/images/empty-3.png') .setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, '')); interaction.reply({ diff --git a/src/client/commands/invite.js b/src/client/commands/invite.js index 3158dc3..aa65a41 100644 --- a/src/client/commands/invite.js +++ b/src/client/commands/invite.js @@ -12,6 +12,7 @@ module.exports = { .setTitle(message.inviteTitle) .setColor(client.config.embedColor) .setURL("https://discord.com/api/oauth2/authorize?client_id=" + client.user.id + "&permissions=2184465408&scope=applications.commands%20bot") //View Channels, Send Messages, Embed Links, Use External Emojis, Use Slash Commands, Connect, Speak, Use Voice Activity + .setImage('https://waren.io/berriabot-temp-sa7a36a9xm6837br/images/empty-3.png') .setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, '')); interaction.reply({ diff --git a/src/client/commands/list.js b/src/client/commands/list.js index fd7b412..0caa10b 100644 --- a/src/client/commands/list.js +++ b/src/client/commands/list.js @@ -70,6 +70,7 @@ module.exports = { .setThumbnail("https://cdn.discordapp.com/emojis/" + client.messageEmojis["list"].replace(/[^0-9]+/g, '')) .setColor(client.config.embedColor) .setDescription(stations) + .setImage('https://waren.io/berriabot-temp-sa7a36a9xm6837br/images/empty-3.png') .setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, '')); interaction.reply({ diff --git a/src/client/commands/maintenance.js b/src/client/commands/maintenance.js index 1574c4c..08a52fc 100644 --- a/src/client/commands/maintenance.js +++ b/src/client/commands/maintenance.js @@ -41,6 +41,7 @@ module.exports = { .setThumbnail("https://cdn.discordapp.com/emojis/" + client.messageEmojis["maintenance"].replace(/[^0-9]+/g, '')) .setColor(client.config.embedColor) .setDescription("Stopped all radios" + "\n" + stoppedRadios) + .setImage('https://waren.io/berriabot-temp-sa7a36a9xm6837br/images/empty-3.png') .setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, '')); interaction.reply({ diff --git a/src/client/commands/nowplaying.js b/src/client/commands/nowplaying.js index 2e2dc32..05dc259 100644 --- a/src/client/commands/nowplaying.js +++ b/src/client/commands/nowplaying.js @@ -28,6 +28,7 @@ module.exports = { .setThumbnail("https://cdn.discordapp.com/emojis/" + client.messageEmojis["play"].replace(/[^0-9]+/g, '')) .setColor(client.config.embedColor) .setDescription(message.nowplayingDescription) + .setImage('https://waren.io/berriabot-temp-sa7a36a9xm6837br/images/empty-3.png') .setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, '')); interaction.reply({ diff --git a/src/client/commands/play.js b/src/client/commands/play.js index c0b6d01..d7d295e 100644 --- a/src/client/commands/play.js +++ b/src/client/commands/play.js @@ -225,6 +225,7 @@ async function play(interaction, guild, client, url, Discord) { .setThumbnail("https://cdn.discordapp.com/emojis/" + client.messageEmojis["play"].replace(/[^0-9]+/g, '')) .setColor(client.config.embedColor) .addField(client.messages.nowplayingTitle, message.nowplayingDescription, true) + .setImage('https://waren.io/berriabot-temp-sa7a36a9xm6837br/images/empty-3.png') .setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, '')); const buttons = new Discord.MessageActionRow() diff --git a/src/client/commands/statistics.js b/src/client/commands/statistics.js index fda04d8..dcd81a5 100644 --- a/src/client/commands/statistics.js +++ b/src/client/commands/statistics.js @@ -33,6 +33,7 @@ module.exports = { .setThumbnail("https://cdn.discordapp.com/emojis/" + client.messageEmojis["statistics"].replace(/[^0-9]+/g, '')) .setColor(client.config.embedColor) .setDescription(statistics) + .setImage('https://waren.io/berriabot-temp-sa7a36a9xm6837br/images/empty-3.png') .setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, '')); interaction.reply({ diff --git a/src/client/commands/status.js b/src/client/commands/status.js index 3ded182..6d9cf63 100644 --- a/src/client/commands/status.js +++ b/src/client/commands/status.js @@ -20,6 +20,7 @@ module.exports = { .addField(client.messages.statusField3, uptime, true) .addField(client.messages.statusField4, client.config.version, true) .addField(client.messages.statusField5, client.config.hostedBy, true) + .setImage('https://waren.io/berriabot-temp-sa7a36a9xm6837br/images/empty-3.png') .setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, '')); interaction.reply({ diff --git a/src/client/commands/stop.js b/src/client/commands/stop.js index e0d1779..19d4c56 100644 --- a/src/client/commands/stop.js +++ b/src/client/commands/stop.js @@ -18,6 +18,7 @@ module.exports = { .setThumbnail("https://cdn.discordapp.com/emojis/" + client.messageEmojis["stop"].replace(/[^0-9]+/g, '')) .setColor(client.config.embedColor) .addField(client.messages.nowplayingTitle, "-", true) + .setImage('https://waren.io/berriabot-temp-sa7a36a9xm6837br/images/empty-3.png') .setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, '')); if(!radio.message){ diff --git a/src/client/events/messageCreate.js b/src/client/events/messageCreate.js index 49614d1..57d50fc 100644 --- a/src/client/events/messageCreate.js +++ b/src/client/events/messageCreate.js @@ -36,6 +36,7 @@ module.exports = { .setThumbnail("https://cdn.discordapp.com/emojis/" + client.messageEmojis["logo"].replace(/[^0-9]+/g, '')) .setColor(client.config.embedColor) .setDescription(client.messages.messageCommandsDeprecatedDescription) + .setImage('https://waren.io/berriabot-temp-sa7a36a9xm6837br/images/empty-3.png') .setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, '')); msg.channel.send({ embeds: [embed] }); diff --git a/src/client/restoreradio.js b/src/client/restoreradio.js index 74fdaac..2d9d860 100644 --- a/src/client/restoreradio.js +++ b/src/client/restoreradio.js @@ -97,6 +97,7 @@ async function play(interaction, guild, client, url, Discord) { .setThumbnail("https://cdn.discordapp.com/emojis/" + client.messageEmojis["play"].replace(/[^0-9]+/g, '')) .setColor(client.config.embedColor) .addField(client.messages.nowplayingTitle, message.nowplayingDescription, true) + .setImage('https://waren.io/berriabot-temp-sa7a36a9xm6837br/images/empty-3.png') .setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, '')); const buttons = new Discord.MessageActionRow()