Skip to content

Commit

Permalink
Update package and format
Browse files Browse the repository at this point in the history
  • Loading branch information
hwangsihu committed Oct 6, 2024
1 parent cfba720 commit a4df16c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
8 changes: 4 additions & 4 deletions src/events/client/VoiceStateUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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);
}
}

Expand Down Expand Up @@ -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;

Expand All @@ -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);
}
}
},
Expand Down

0 comments on commit a4df16c

Please sign in to comment.