From a4df16c7f50d03ff22ba39ed55b089fd7ee50d68 Mon Sep 17 00:00:00 2001 From: hwangsihu Date: Sun, 6 Oct 2024 23:43:31 +0900 Subject: [PATCH] Update package and format --- biome.json | 2 +- package.json | 2 +- src/events/client/VoiceStateUpdate.ts | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/biome.json b/biome.json index 1405b9c85..ce00ba724 100644 --- a/biome.json +++ b/biome.json @@ -1,5 +1,5 @@ { - "$schema": "https://biomejs.dev/schemas/1.9.2/schema.json", + "$schema": "https://biomejs.dev/schemas/1.9.3/schema.json", "vcs": { "enabled": true, "clientKind": "git", diff --git a/package.json b/package.json index 8a07ff30f..e7865863a 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ }, "homepage": "https://github.com/appujet/lavamusic#readme", "devDependencies": { - "@biomejs/biome": "^1.9.2", + "@biomejs/biome": "^1.9.3", "@types/i18n": "^0.13.12", "@types/node": "^22.7.4", "@types/signale": "^1.4.7", 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); } } },