diff --git a/src/commands/Information/invite.js b/src/commands/Information/invite.js index f21bffc69..75e15d530 100644 --- a/src/commands/Information/invite.js +++ b/src/commands/Information/invite.js @@ -31,7 +31,7 @@ module.exports = { const mainPage = new EmbedBuilder() .setAuthor({ name: 'LavaMusic', iconURL: 'https://media.discordapp.net/attachments/876035356460462090/888434725235097610/20210820_124325.png' }) .setThumbnail('https://media.discordapp.net/attachments/876035356460462090/888434725235097610/20210820_124325.png') - .setColor('#303236') + .setColor(0x303236) .addFields([{ name: 'invite lavamusic', value: `[Here](https://discord.com/api/oauth2/authorize?client_id=${client.user.id}&permissions=36768832&scope=applications.commands%20bot)` }]) message.reply({ embeds: [mainPage], components: [row] }) } diff --git a/src/commands/Music/filters.js b/src/commands/Music/filters.js index a479f45ec..a6da27963 100644 --- a/src/commands/Music/filters.js +++ b/src/commands/Music/filters.js @@ -1,4 +1,4 @@ -const { EmbedBuilder, ButtonBuilder, ActionRowBuilder } = require("discord.js"); +const { EmbedBuilder, ButtonBuilder, ActionRowBuilder, ButtonStyle } = require("discord.js"); module.exports = { name: "filters", @@ -18,7 +18,7 @@ module.exports = { const player = message.client.manager.get(message.guild.id); if (!player.queue.current) { let thing = new EmbedBuilder() - .setColor("RED") + .setColor("Red") .setDescription("There is no music playing."); return message.reply({ embeds: [thing] }); } @@ -27,7 +27,7 @@ module.exports = { .setColor(client.embedColor) .setDescription(`Choose what filter you want in the button`) - const but = new ButtonBuilder().setCustomId("clear_but").setLabel("Clear").setStyle("DANGER"); + const but = new ButtonBuilder().setCustomId("clear_but").setLabel("Clear").setStyle(ButtonStyle.Danger); const but2 = new ButtonBuilder().setCustomId("bass_but").setLabel("Bass").setStyle(ButtonStyle.Primary); const but3 = new ButtonBuilder().setCustomId("night_but").setLabel("Night Core").setStyle(ButtonStyle.Primary); const but4 = new ButtonBuilder().setCustomId("picth_but").setLabel("Pitch").setStyle(ButtonStyle.Primary); diff --git a/src/commands/Music/grab.js b/src/commands/Music/grab.js index 2bb34b29b..7a984ee56 100644 --- a/src/commands/Music/grab.js +++ b/src/commands/Music/grab.js @@ -19,7 +19,7 @@ module.exports = { if (!player.queue.current) { let thing = new EmbedBuilder() - .setColor("#FFC942") + .setColor(0xFFC942) .setDescription("> There is no music playing."); return message.channel.send({embeds: [thing]}); } diff --git a/src/commands/Music/loop.js b/src/commands/Music/loop.js index 3ec739932..57c29670b 100644 --- a/src/commands/Music/loop.js +++ b/src/commands/Music/loop.js @@ -19,7 +19,7 @@ module.exports = { if (!player.queue.current) { let thing = new EmbedBuilder() - .setColor("RED") + .setColor("Red") .setDescription("There is no music playing."); return message.reply({ embeds: [thing] }); } @@ -43,4 +43,4 @@ module.exports = { .setDescription(`${emojiloop} Loop track is now **${trackRepeat}**`) return message.reply({ embeds: [thing] }); } -}; \ No newline at end of file +}; diff --git a/src/commands/Music/lyrics.js b/src/commands/Music/lyrics.js index b2208fec9..4aaaf0ed7 100644 --- a/src/commands/Music/lyrics.js +++ b/src/commands/Music/lyrics.js @@ -29,7 +29,7 @@ module.exports = { return message.channel.send({ embeds: [ new EmbedBuilder() - .setColor("RED") + .setColor("Red") .setDescription("Lavalink node is not connected"), ], }); @@ -39,7 +39,7 @@ module.exports = { return message.channel.send({ embeds: [ new EmbedBuilder() - .setColor("RED") + .setColor("Red") .setDescription("There's nothing playing"), ], }); @@ -60,7 +60,7 @@ module.exports = { return message.channel.send({ embeds: [ new EmbedBuilder() - .setColor("RED") + .setColor("Red") .setDescription( `❌ | No lyrics found for ${search}!\nMake sure you typed in your search correctly.` ), diff --git a/src/commands/Music/nowplaying.js b/src/commands/Music/nowplaying.js index a304dcb47..8917d074a 100644 --- a/src/commands/Music/nowplaying.js +++ b/src/commands/Music/nowplaying.js @@ -20,9 +20,9 @@ execute: async (message, args, client, prefix) => { if (!player.queue.current) { let thing = new EmbedBuilder() - .setColor("RED") + .setColor("Red") .setDescription("There is no music playing."); - return message.channel.send(thing); + return message.channel.send({ embeds: [thing] }); } const song = player.queue.current const emojimusic = client.emoji.music; diff --git a/src/commands/Music/pause.js b/src/commands/Music/pause.js index bbaee8c9b..a239388c0 100644 --- a/src/commands/Music/pause.js +++ b/src/commands/Music/pause.js @@ -18,7 +18,7 @@ module.exports = { if (!player.queue.current) { let thing = new EmbedBuilder() - .setColor("RED") + .setColor("Red") .setDescription("There is no music playing."); return message.reply({embeds: [thing]}); } @@ -27,7 +27,7 @@ module.exports = { if (player.paused) { let thing = new EmbedBuilder() - .setColor("RED") + .setColor("Red") .setDescription(`${emojipause} The player is already paused.`) .setTimestamp() return message.reply({embeds: [thing]}); diff --git a/src/commands/Music/remove.js b/src/commands/Music/remove.js index 35b0fdf84..f32c84d9a 100644 --- a/src/commands/Music/remove.js +++ b/src/commands/Music/remove.js @@ -18,7 +18,7 @@ module.exports = { if (!player.queue.current) { let thing = new EmbedBuilder() - .setColor("RED") + .setColor("Red") .setDescription("There is no music playing."); return message.reply({embeds: [thing]}); } @@ -27,7 +27,7 @@ module.exports = { if (position > player.queue.size) { const number = (position + 1); let thing = new EmbedBuilder() - .setColor("RED") + .setColor("Red") .setDescription(`No songs at number ${number}.\nTotal Songs: ${player.queue.size}`); return message.reply({embeds: [thing]}); } @@ -44,4 +44,4 @@ module.exports = { return message.reply({embeds: [thing]}); } -}; \ No newline at end of file +}; diff --git a/src/commands/Music/resume.js b/src/commands/Music/resume.js index fb417d008..d64f8d605 100644 --- a/src/commands/Music/resume.js +++ b/src/commands/Music/resume.js @@ -20,7 +20,7 @@ module.exports = { if (!player.queue.current) { let thing = new EmbedBuilder() - .setColor("RED") + .setColor("Red") .setDescription("There is no music playing."); return message.reply({embeds: [thing]}); } @@ -29,7 +29,7 @@ module.exports = { if (!player.paused) { let thing = new EmbedBuilder() - .setColor("RED") + .setColor("Red") .setDescription(`${emojiresume} The player is already **resumed**.`) .setTimestamp() return message.reply({embeds: [thing]}); @@ -44,4 +44,4 @@ module.exports = { return message.reply({embeds: [thing]}); } -}; \ No newline at end of file +}; diff --git a/src/commands/Music/seek.js b/src/commands/Music/seek.js index 6b6e45be9..5fe0920e9 100644 --- a/src/commands/Music/seek.js +++ b/src/commands/Music/seek.js @@ -21,7 +21,7 @@ module.exports = { if (!player.queue.current) { let thing = new EmbedBuilder() - .setColor("RED") + .setColor("Red") .setDescription("There is no music playing."); return message.reply({embeds: [thing]}); } @@ -53,10 +53,10 @@ module.exports = { } } else { let thing = new EmbedBuilder() - .setColor("RED") + .setColor("Red") .setDescription(`Seek duration exceeds Song duration.\nSong duration: \`${convertTime(duration)}\``); return message.reply({embeds: [thing]}); } } -}; \ No newline at end of file +}; diff --git a/src/commands/Music/shuffle.js b/src/commands/Music/shuffle.js index 6b0ecf98c..7e0b103b2 100644 --- a/src/commands/Music/shuffle.js +++ b/src/commands/Music/shuffle.js @@ -18,7 +18,7 @@ module.exports = { if (!player.queue.current) { let thing = new EmbedBuilder() - .setColor("RED") + .setColor("Red") .setDescription("There is no music playing."); return message.reply({embeds: [thing]}); } @@ -33,4 +33,4 @@ module.exports = { return message.reply({embeds: [thing]}).catch(error => client.logger.log(error, "error")); } -}; \ No newline at end of file +}; diff --git a/src/commands/Music/skip.js b/src/commands/Music/skip.js index 10a432c4f..281ea34ca 100644 --- a/src/commands/Music/skip.js +++ b/src/commands/Music/skip.js @@ -19,7 +19,7 @@ execute: async (message, args, client, prefix) => { if (!player.queue.current) { let thing = new EmbedBuilder() - .setColor("RED") + .setColor("Red") .setDescription("There is no music playing."); return message.reply({embeds: [thing]}); } @@ -37,4 +37,4 @@ execute: async (message, args, client, prefix) => { }) } -}; \ No newline at end of file +}; diff --git a/src/commands/Music/skipto.js b/src/commands/Music/skipto.js index aecc7bba7..6985d1a32 100644 --- a/src/commands/Music/skipto.js +++ b/src/commands/Music/skipto.js @@ -19,7 +19,7 @@ module.exports = { if (!player.queue.current) { let thing = new EmbedBuilder() - .setColor("RED") + .setColor("Red) .setDescription("There is no music playing."); return message.reply({embeds: [thing]}); } @@ -28,7 +28,7 @@ module.exports = { if (!position || position < 0 || position > player.queue.size) { let thing = new EmbedBuilder() - .setColor("RED") + .setColor("Red") .setDescription(`Usage: ${message.client.prefix}skipto `) return message.reply({embeds: [thing]}); } diff --git a/src/commands/Music/stop.js b/src/commands/Music/stop.js index cf39e8152..d12af7ec4 100644 --- a/src/commands/Music/stop.js +++ b/src/commands/Music/stop.js @@ -18,7 +18,7 @@ module.exports = { if (!player.queue.current) { let thing = new EmbedBuilder() - .setColor("RED") + .setColor("Red") .setDescription("There is no music playing."); return message.reply({embeds: [thing]}); } @@ -40,4 +40,4 @@ module.exports = { message.reply({embeds: [thing]}); } -}; \ No newline at end of file +}; diff --git a/src/commands/Playlist/info.js b/src/commands/Playlist/info.js index 4ea3335fc..d26448246 100644 --- a/src/commands/Playlist/info.js +++ b/src/commands/Playlist/info.js @@ -1,4 +1,4 @@ -const { EmbedBuilder, ButtonBuilder, ActionRowBuilder } = require("discord.js"); +const { EmbedBuilder, ButtonBuilder, ActionRowBuilder, ButtonStyle } = require("discord.js"); const db = require("../../schema/playlist"); const { convertTime } = require("../../utils/convert.js"); const lodash = require("lodash"); @@ -37,11 +37,11 @@ module.exports = { return await message.reply({ embeds: [embed] }) } else { - let previousbut = new ButtonBuilder().setCustomId("Previous").setEmoji("⏪").setStyle(ButtonStyle.Secondary); + let previousbut = new ButtonBuilder().setCustomId("Previous").setEmoji({ name: "⏪" }).setStyle(ButtonStyle.Secondary); - let nextbut = new ButtonBuilder().setCustomId("Next").setEmoji("⏩").setStyle(ButtonStyle.Secondary); + let nextbut = new ButtonBuilder().setCustomId("Next").setEmoji({ name: "⏩" }).setStyle(ButtonStyle.Secondary); - let stopbut = new ButtonBuilder().setCustomId("Stop").setEmoji("⏹️").setStyle(ButtonStyle.Secondary); + let stopbut = new ButtonBuilder().setCustomId("Stop").setEmoji({ name: "⏹️" }).setStyle(ButtonStyle.Secondary); const row = new ActionRowBuilder().addComponents(previousbut, stopbut, nextbut); diff --git a/src/slashCommands/Playlist/info.js b/src/slashCommands/Playlist/info.js index 03f219522..7678d953c 100644 --- a/src/slashCommands/Playlist/info.js +++ b/src/slashCommands/Playlist/info.js @@ -1,4 +1,4 @@ -const { EmbedBuilder, CommandInteraction, Client, ActionRowBuilder, ButtonBuilder, ApplicationCommandOptionType } = require("discord.js"); +const { EmbedBuilder, CommandInteraction, Client, ActionRowBuilder, ButtonBuilder, ApplicationCommandOptionType, ButtonStyle } = require("discord.js"); const db = require("../../schema/playlist"); const { convertTime } = require("../../utils/convert.js"); const lodash = require("lodash"); @@ -49,11 +49,11 @@ module.exports = { } else { - let previousbut = new ButtonBuilder().setCustomId("Previous").setEmoji("⏪").setStyle("SECONDARY"); + let previousbut = new ButtonBuilder().setCustomId("Previous").setEmoji({ name: "⏪" }).setStyle(ButtonStyle.Secondary); - let nextbut = new ButtonBuilder().setCustomId("Next").setEmoji("⏩").setStyle("SECONDARY"); + let nextbut = new ButtonBuilder().setCustomId("Next").setEmoji({ name: "⏩" }).setStyle(ButtonStyle.Secondary); - let stopbut = new ButtonBuilder().setCustomId("Stop").setEmoji("⏹️").setStyle("SECONDARY"); + let stopbut = new ButtonBuilder().setCustomId("Stop").setEmoji({ name: "⏹️" }).setStyle(ButtonStyle.Secondary); const row = new ActionRowBuilder().addComponents(previousbut, stopbut, nextbut); diff --git a/src/slashCommands/Playlist/savecurrent.js b/src/slashCommands/Playlist/savecurrent.js index 8179faed0..b9bda8deb 100644 --- a/src/slashCommands/Playlist/savecurrent.js +++ b/src/slashCommands/Playlist/savecurrent.js @@ -32,8 +32,8 @@ module.exports = { const player = client.manager.players.get(interaction.guildId); if (!player.queue.current) { let thing = new EmbedBuilder() - .setColor("RED") - .setDescription(i18n.__("player.nomusic")); + .setColor("Red") + .setDescription('Nothing is playing right now.') return interaction.editReply({ embeds: [thing] }); } if (!data) { diff --git a/src/slashCommands/Playlist/savequeue.js b/src/slashCommands/Playlist/savequeue.js index 6950291a0..0639b45a5 100644 --- a/src/slashCommands/Playlist/savequeue.js +++ b/src/slashCommands/Playlist/savequeue.js @@ -31,7 +31,7 @@ module.exports = { const player = client.manager.players.get(interaction.guildId); if (!player.queue.current) { let thing = new EmbedBuilder() - .setColor("RED") + .setColor("Red") .setDescription(`Currently No Music Is Playing.`); return interaction.editReply({ embeds: [thing] }); }