From 043c18b2165d2819007e0f27b658201d2bc28f72 Mon Sep 17 00:00:00 2001 From: Supositware Date: Thu, 8 Sep 2022 16:56:15 +0200 Subject: [PATCH] Fix embeds --- commands/fun/4chan.js | 2 +- commands/fun/reddit.js | 2 +- commands/utility/about.js | 2 +- commands/utility/donate.js | 2 +- commands/utility/download.js | 2 +- commands/utility/help.js | 4 ++-- commands/utility/stats.js | 2 +- events/client/messageReactionAdd.js | 2 +- events/client/messageReactionRemove.js | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/commands/fun/4chan.js b/commands/fun/4chan.js index 5dd8090..cce9af4 100644 --- a/commands/fun/4chan.js +++ b/commands/fun/4chan.js @@ -67,7 +67,7 @@ export default { } const FourchanEmbed = new EmbedBuilder() - .setColor(interaction.member ? interaction.member.displayHexColor : 'NAVY') + .setColor(interaction.member ? interaction.member.displayHexColor : 'Navy') .setTitle(turndown.turndown(title)) .setDescription(turndown.turndown(description)) .setImage(`https://i.4cdn.org/${board}/${response.threads[i].posts[0].tim}${response.threads[i].posts[0].ext}`) diff --git a/commands/fun/reddit.js b/commands/fun/reddit.js index 99cc40b..d23c07a 100644 --- a/commands/fun/reddit.js +++ b/commands/fun/reddit.js @@ -29,7 +29,7 @@ export default { return interaction.editReply('No nsfw'); } const redditEmbed = new EmbedBuilder() - .setColor(interaction.member ? interaction.member.displayHexColor : 'NAVY') + .setColor(interaction.member ? interaction.member.displayHexColor : 'Navy') .setTitle(response.data.children[i].data.title) .setDescription(response.data.children[i].data.selftext) .setURL('https://reddit.com' + response.data.children[i].data.permalink) diff --git a/commands/utility/about.js b/commands/utility/about.js index 70055ce..6787ce6 100644 --- a/commands/utility/about.js +++ b/commands/utility/about.js @@ -42,7 +42,7 @@ export default { exec('git rev-parse --short HEAD', (err, stdout) => { const aboutEmbed = new EmbedBuilder() - .setColor(interaction.member ? interaction.member.displayHexColor : 'NAVY') + .setColor(interaction.member ? interaction.member.displayHexColor : 'Navy') .setAuthor({ name: client.user.tag, iconURL: client.user.displayAvatarURL(), url: 'https://libtar.de' }) .setTitle('About me') .setDescription(description) diff --git a/commands/utility/donate.js b/commands/utility/donate.js index 3574511..b45db5f 100644 --- a/commands/utility/donate.js +++ b/commands/utility/donate.js @@ -14,7 +14,7 @@ export default { }); const Embed = new EmbedBuilder() - .setColor(interaction.member ? interaction.member.displayHexColor : 'NAVY') + .setColor(interaction.member ? interaction.member.displayHexColor : 'Navy') .setTitle('Donation link') .setDescription(desc); diff --git a/commands/utility/download.js b/commands/utility/download.js index 46c03cc..690df6f 100644 --- a/commands/utility/download.js +++ b/commands/utility/download.js @@ -115,7 +115,7 @@ export default { async function download(url, interaction, originalInteraction) { let format = 'bestvideo*+bestaudio/best'; const Embed = new EmbedBuilder() - .setColor(interaction.member ? interaction.member.displayHexColor : 'NAVY') + .setColor(interaction.member ? interaction.member.displayHexColor : 'Navy') .setAuthor({ name: `Downloaded by ${interaction.user.tag}`, iconURL: interaction.user.displayAvatarURL(), url: url }) .setFooter({ text: `You can get the original video by clicking on the "Downloaded by ${interaction.user.tag}" message!` }); diff --git a/commands/utility/help.js b/commands/utility/help.js index 983c8ee..6dee977 100644 --- a/commands/utility/help.js +++ b/commands/utility/help.js @@ -50,7 +50,7 @@ export default { } const embed = new EmbedBuilder() - .setColor(interaction.member ? interaction.member.displayHexColor : 'NAVY') + .setColor(interaction.member ? interaction.member.displayHexColor : 'Navy') .setTitle(`\`${p}${command.data.name} ${usage.join(' ')}\``) .addFields( { name: 'Description', value: description.description }, @@ -122,7 +122,7 @@ export default { } else { const embed = new EmbedBuilder() - .setColor(interaction.member ? interaction.member.displayHexColor : 'NAVY') + .setColor(interaction.member ? interaction.member.displayHexColor : 'Navy') .addFields({ name: 'Command List', value: `This is a list of commands.\nTo view details for a command, do \`${prefixs[0]}help \`.` }) .setFooter({ text: `All the available prefix: ${prefixs.join('| ')}` }); diff --git a/commands/utility/stats.js b/commands/utility/stats.js index 6075459..76e8975 100644 --- a/commands/utility/stats.js +++ b/commands/utility/stats.js @@ -34,7 +34,7 @@ export default { }; const statsEmbed = new EmbedBuilder() - .setColor(interaction.member ? interaction.member.displayHexColor : 'NAVY') + .setColor(interaction.member ? interaction.member.displayHexColor : 'Navy') .setTitle('Bot stats') .setAuthor({ name: client.user.tag, iconURL: client.user.displayAvatarURL(), url: 'https://libtar.de' }) .addFields( diff --git a/events/client/messageReactionAdd.js b/events/client/messageReactionAdd.js index dd80c13..1fc5bf3 100644 --- a/events/client/messageReactionAdd.js +++ b/events/client/messageReactionAdd.js @@ -119,7 +119,7 @@ export default { } const Embed = new EmbedBuilder() - .setColor(reaction.message.member ? reaction.message.member.displayHexColor : 'NAVY') + .setColor(reaction.message.member ? reaction.message.member.displayHexColor : 'Navy') .setAuthor({ name: reaction.message.author.username, iconURL: reaction.message.author.displayAvatarURL() }) .addFields( { name: 'Jump to', value: `[message](https://discordapp.com/channels/${reaction.message.guild.id}/${reaction.message.channel.id}/${reaction.message.id})`, inline: true }, diff --git a/events/client/messageReactionRemove.js b/events/client/messageReactionRemove.js index f3326c3..a79e3f5 100644 --- a/events/client/messageReactionRemove.js +++ b/events/client/messageReactionRemove.js @@ -100,7 +100,7 @@ export default { } const Embed = new EmbedBuilder() - .setColor(reaction.message.member ? reaction.message.member.displayHexColor : 'NAVY') + .setColor(reaction.message.member ? reaction.message.member.displayHexColor : 'Navy') .setAuthor({ name: reaction.message.author.username, iconURL: reaction.message.author.displayAvatarURL() }) .addFields( { name: 'Jump to', value: `[message](https://discordapp.com/channels/${reaction.message.guild.id}/${reaction.message.channel.id}/${reaction.message.id})`, inline: true },