diff --git a/biome.json b/biome.json index ce00ba724..f9dbaa5fe 100644 --- a/biome.json +++ b/biome.json @@ -1,5 +1,5 @@ { - "$schema": "https://biomejs.dev/schemas/1.9.3/schema.json", + "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", "vcs": { "enabled": true, "clientKind": "git", diff --git a/package.json b/package.json index 8f7ee7feb..feb1cb4c8 100644 --- a/package.json +++ b/package.json @@ -33,15 +33,15 @@ }, "homepage": "https://github.com/appujet/lavamusic#readme", "devDependencies": { - "@biomejs/biome": "^1.9.3", + "@biomejs/biome": "^1.9.4", "@types/i18n": "^0.13.12", "@types/node": "^22.7.6", "@types/signale": "^1.4.7", - "prisma": "^5.21.0", + "prisma": "^5.21.1", "typescript": "^5.6.3" }, "dependencies": { - "@prisma/client": "^5.21.0", + "@prisma/client": "^5.21.1", "@top-gg/sdk": "^3.1.6", "discord.js": "^14.16.3", "dotenv": "^16.4.5", diff --git a/src/events/client/VoiceStateUpdate.ts b/src/events/client/VoiceStateUpdate.ts index 3413ee977..47d6fbdb1 100644 --- a/src/events/client/VoiceStateUpdate.ts +++ b/src/events/client/VoiceStateUpdate.ts @@ -47,7 +47,7 @@ export default class VoiceStateUpdate extends Event { handale = { async join(newState: VoiceState, client: Lavamusic) { - await new Promise((resolve) => setTimeout(resolve, 3000)); + await new Promise(resolve => setTimeout(resolve, 3000)); const bot = newState.guild.voiceStates.cache.get(client.user!.id); if (!bot) return; @@ -58,7 +58,7 @@ export default class VoiceStateUpdate extends Event { bot.suppress ) { if (bot.channel && bot.member && bot.channel.permissionsFor(bot.member!).has('MuteMembers')) { - await bot.setSuppressed(false) + await bot.setSuppressed(false); } } @@ -114,7 +114,7 @@ export default class VoiceStateUpdate extends Event { async move(newState: VoiceState, client: Lavamusic) { // delay for 3 seconds - await new Promise((resolve) => setTimeout(resolve, 3000)); + await new Promise(resolve => setTimeout(resolve, 3000)); const bot = newState.guild.voiceStates.cache.get(client.user!.id); if (!bot) return; @@ -125,7 +125,7 @@ export default class VoiceStateUpdate extends Event { bot.suppress ) { if (bot.channel && bot.member && bot.channel.permissionsFor(bot.member!).has('MuteMembers')) { - await bot.setSuppressed(false) + await bot.setSuppressed(false); } } }, diff --git a/src/events/player/PlayerDestroy.ts b/src/events/player/PlayerDestroy.ts index f5ead1230..bfa9fb3aa 100644 --- a/src/events/player/PlayerDestroy.ts +++ b/src/events/player/PlayerDestroy.ts @@ -4,35 +4,35 @@ import { Event, type Lavamusic } from '../../structures/index'; import { updateSetup } from '../../utils/SetupSystem'; export default class PlayerDestroy extends Event { - constructor(client: Lavamusic, file: string) { - super(client, file, { - name: 'playerDestroy', - }); - } + constructor(client: Lavamusic, file: string) { + super(client, file, { + name: 'playerDestroy', + }); + } - public async run(player: Player, _reason: string): Promise { - const guild = this.client.guilds.cache.get(player.guildId); - if (!guild) return; - const locale = await this.client.db.getLanguage(player.guildId); - await updateSetup(this.client, guild, locale); + public async run(player: Player, _reason: string): Promise { + const guild = this.client.guilds.cache.get(player.guildId); + if (!guild) return; + const locale = await this.client.db.getLanguage(player.guildId); + await updateSetup(this.client, guild, locale); - const messageId = player.get('messageId'); - if (!messageId) return; + const messageId = player.get('messageId'); + if (!messageId) return; - const channel = guild.channels.cache.get(player.textChannelId!) as TextChannel; - if (!channel) return; + const channel = guild.channels.cache.get(player.textChannelId!) as TextChannel; + if (!channel) return; - const message = await channel.messages.fetch(messageId).catch(() => { - null; - }); - if (!message) return; + const message = await channel.messages.fetch(messageId).catch(() => { + null; + }); + if (!message) return; - if (message.editable) { - await message.edit({ components: [] }).catch(() => { - null; - }); - } - } + if (message.editable) { + await message.edit({ components: [] }).catch(() => { + null; + }); + } + } } /** diff --git a/src/events/player/PlayerDisconnect.ts b/src/events/player/PlayerDisconnect.ts index 630e5a8f7..78183fb77 100644 --- a/src/events/player/PlayerDisconnect.ts +++ b/src/events/player/PlayerDisconnect.ts @@ -4,35 +4,35 @@ import { Event, type Lavamusic } from '../../structures/index'; import { updateSetup } from '../../utils/SetupSystem'; export default class PlayerDisconnect extends Event { - constructor(client: Lavamusic, file: string) { - super(client, file, { - name: 'playerDisconnect', - }); - } + constructor(client: Lavamusic, file: string) { + super(client, file, { + name: 'playerDisconnect', + }); + } - public async run(player: Player, _voiceChannelId: string): Promise { - const guild = this.client.guilds.cache.get(player.guildId); - if (!guild) return; - const locale = await this.client.db.getLanguage(player.guildId); - await updateSetup(this.client, guild, locale); + public async run(player: Player, _voiceChannelId: string): Promise { + const guild = this.client.guilds.cache.get(player.guildId); + if (!guild) return; + const locale = await this.client.db.getLanguage(player.guildId); + await updateSetup(this.client, guild, locale); - const messageId = player.get('messageId'); - if (!messageId) return; + const messageId = player.get('messageId'); + if (!messageId) return; - const channel = guild.channels.cache.get(player.textChannelId!) as TextChannel; - if (!channel) return; + const channel = guild.channels.cache.get(player.textChannelId!) as TextChannel; + if (!channel) return; - const message = await channel.messages.fetch(messageId).catch(() => { - null; - }); - if (!message) return; + const message = await channel.messages.fetch(messageId).catch(() => { + null; + }); + if (!message) return; - if (message.editable) { - await message.edit({ components: [] }).catch(() => { - null; - }); - } - } + if (message.editable) { + await message.edit({ components: [] }).catch(() => { + null; + }); + } + } } /**