diff --git a/biome.json b/biome.json index 0c2f79ce..52c0883a 100644 --- a/biome.json +++ b/biome.json @@ -1,5 +1,5 @@ { - "$schema": "https://biomejs.dev/schemas/1.9.0/schema.json", + "$schema": "https://biomejs.dev/schemas/1.9.1/schema.json", "organizeImports": { "enabled": true }, diff --git a/package.json b/package.json index 273edc85..dc0aefb5 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ }, "homepage": "https://github.com/appujet/lavamusic#readme", "devDependencies": { - "@biomejs/biome": "^1.9.0", + "@biomejs/biome": "^1.9.1", "@types/i18n": "^0.13.12", "@types/node": "^22.5.5", "@types/signale": "^1.4.7", @@ -48,7 +48,7 @@ "dotenv": "^16.4.5", "genius-lyrics-api": "^3.2.1", "i18n": "^0.15.1", - "lavalink-client": "https://pkg.pr.new/moe-music/lavalink-client@b5bd496", + "lavalink-client": "https://pkg.pr.new/moe-music/lavalink-client@0b0f590", "node-system-stats": "^1.3.0", "signale": "^1.4.0", "topgg-autoposter": "^2.0.2", diff --git a/src/commands/filters/Pitch.ts b/src/commands/filters/Pitch.ts index 2e61a8c0..52bd34ba 100644 --- a/src/commands/filters/Pitch.ts +++ b/src/commands/filters/Pitch.ts @@ -78,4 +78,4 @@ export default class Pitch extends Command { * This code is the property of Coder and may not be reproduced or * modified without permission. For more information, contact us at * https://discord.gg/ns8CTk9J3e - */ \ No newline at end of file + */ diff --git a/src/commands/filters/Rate.ts b/src/commands/filters/Rate.ts index 9c734a71..ccfc1d71 100644 --- a/src/commands/filters/Rate.ts +++ b/src/commands/filters/Rate.ts @@ -78,4 +78,4 @@ export default class Rate extends Command { * This code is the property of Coder and may not be reproduced or * modified without permission. For more information, contact us at * https://discord.gg/ns8CTk9J3e - */ \ No newline at end of file + */ diff --git a/src/commands/filters/Reset.ts b/src/commands/filters/Reset.ts index cb07b92d..83c2d2c9 100644 --- a/src/commands/filters/Reset.ts +++ b/src/commands/filters/Reset.ts @@ -54,4 +54,4 @@ export default class Reset extends Command { * This code is the property of Coder and may not be reproduced or * modified without permission. For more information, contact us at * https://discord.gg/ns8CTk9J3e - */ \ No newline at end of file + */ diff --git a/src/commands/filters/Rotation.ts b/src/commands/filters/Rotation.ts index b1bb461a..c0355c74 100644 --- a/src/commands/filters/Rotation.ts +++ b/src/commands/filters/Rotation.ts @@ -33,7 +33,7 @@ export default class Rotation extends Command { public async run(client: Lavamusic, ctx: Context): Promise { const player = client.manager.getPlayer(ctx.guild!.id); if (player.filterManager.filters.rotation) { - player.filterManager.toggleRotation(); + player.filterManager.toggleRotation(); await ctx.sendMessage({ embeds: [ { @@ -65,4 +65,4 @@ export default class Rotation extends Command { * This code is the property of Coder and may not be reproduced or * modified without permission. For more information, contact us at * https://discord.gg/ns8CTk9J3e - */ \ No newline at end of file + */ diff --git a/src/commands/filters/Speed.ts b/src/commands/filters/Speed.ts index 022bb8e2..6f6b9bc2 100644 --- a/src/commands/filters/Speed.ts +++ b/src/commands/filters/Speed.ts @@ -78,4 +78,4 @@ export default class Speed extends Command { * This code is the property of Coder and may not be reproduced or * modified without permission. For more information, contact us at * https://discord.gg/ns8CTk9J3e - */ \ No newline at end of file + */ diff --git a/src/commands/filters/Tremolo.ts b/src/commands/filters/Tremolo.ts index f0b98fde..40901d77 100644 --- a/src/commands/filters/Tremolo.ts +++ b/src/commands/filters/Tremolo.ts @@ -32,7 +32,7 @@ export default class Tremolo extends Command { public async run(client: Lavamusic, ctx: Context): Promise { const player = client.manager.getPlayer(ctx.guild!.id); - const tremoloEnabled = player.filterManager.filters.tremolo + const tremoloEnabled = player.filterManager.filters.tremolo; if (tremoloEnabled) { player.filterManager.toggleTremolo(); @@ -67,4 +67,4 @@ export default class Tremolo extends Command { * This code is the property of Coder and may not be reproduced or * modified without permission. For more information, contact us at * https://discord.gg/ns8CTk9J3e - */ \ No newline at end of file + */ diff --git a/src/commands/filters/Vibrato.ts b/src/commands/filters/Vibrato.ts index 64391000..33d5769e 100644 --- a/src/commands/filters/Vibrato.ts +++ b/src/commands/filters/Vibrato.ts @@ -32,7 +32,7 @@ export default class Vibrato extends Command { public async run(client: Lavamusic, ctx: Context): Promise { const player = client.manager.getPlayer(ctx.guild!.id); - const vibratoEnabled = player.filterManager.filters.vibrato + const vibratoEnabled = player.filterManager.filters.vibrato; if (vibratoEnabled) { player.filterManager.toggleVibrato(); @@ -67,4 +67,4 @@ export default class Vibrato extends Command { * This code is the property of Coder and may not be reproduced or * modified without permission. For more information, contact us at * https://discord.gg/ns8CTk9J3e - */ \ No newline at end of file + */ diff --git a/src/commands/music/Play.ts b/src/commands/music/Play.ts index 9c3b4062..332dca77 100644 --- a/src/commands/music/Play.ts +++ b/src/commands/music/Play.ts @@ -102,7 +102,9 @@ export default class Play extends Command { const focusedValue = interaction.options.getFocused(); if (!focusedValue) { - return interaction.respond([]).catch(() => { null }); + return interaction.respond([]).catch(() => { + null; + }); } const res = await this.client.manager.search(focusedValue, interaction.user); @@ -118,7 +120,9 @@ export default class Play extends Command { }); } - return await interaction.respond(songs).catch(() => { null }); + return await interaction.respond(songs).catch(() => { + null; + }); } } diff --git a/src/events/client/SetupSystem.ts b/src/events/client/SetupSystem.ts index 179cdfeb..ae57b3c1 100644 --- a/src/events/client/SetupSystem.ts +++ b/src/events/client/SetupSystem.ts @@ -16,7 +16,7 @@ export default class SetupSystem extends Event { if (!(channel instanceof TextChannel)) return; if (!message.member?.voice.channel) { await oops(channel, T(locale, "event.message.no_voice_channel_queue")); - await message.delete().catch(() => { }); + await message.delete().catch(() => {}); return; } @@ -31,7 +31,7 @@ export default class SetupSystem extends Event { channel: voiceChannel.id, }), ); - await message.delete().catch(() => { }); + await message.delete().catch(() => {}); return; } @@ -42,7 +42,7 @@ export default class SetupSystem extends Event { channel: clientMember.voice.channelId, }), ); - await message.delete().catch(() => { }); + await message.delete().catch(() => {}); return; } @@ -61,7 +61,7 @@ export default class SetupSystem extends Event { } await setupStart(this.client, message.content, player, message); - await message.delete().catch(() => { }); + await message.delete().catch(() => {}); } } diff --git a/src/events/node/Connect.ts b/src/events/node/Connect.ts index a234824d..75b02fe9 100644 --- a/src/events/node/Connect.ts +++ b/src/events/node/Connect.ts @@ -35,7 +35,6 @@ export default class Connect extends Event { textChannelId: channel.id, selfDeaf: true, selfMute: false, - }); if (!player.connected) await player.connect(); } catch (error) { diff --git a/src/events/player/QueueEnd.ts b/src/events/player/QueueEnd.ts index d489603e..c25e808f 100644 --- a/src/events/player/QueueEnd.ts +++ b/src/events/player/QueueEnd.ts @@ -20,11 +20,11 @@ export default class QueueEnd extends Event { const channel = guild.channels.cache.get(player.textChannelId) as TextChannel; if (!channel) return; - const message = await channel.messages.fetch(messageId).catch(() => { }); + const message = await channel.messages.fetch(messageId).catch(() => {}); if (!message) return; if (message.editable) { - await message.edit({ components: [] }).catch(() => { }); + await message.edit({ components: [] }).catch(() => {}); } } } diff --git a/src/structures/LavalinkClient.ts b/src/structures/LavalinkClient.ts index dd475e88..a93faf89 100644 --- a/src/structures/LavalinkClient.ts +++ b/src/structures/LavalinkClient.ts @@ -15,7 +15,7 @@ export default class LavalinkClient extends LavalinkManager { defaultSearchPlatform: client.env.SEARCH_ENGINE, onDisconnect: { autoReconnect: true, - destroyPlayer: false + destroyPlayer: false, }, requesterTransformer: requesterTransformer, onEmptyQueue: {