Skip to content

Commit

Permalink
chore: lint files
Browse files Browse the repository at this point in the history
  • Loading branch information
0t4u committed Aug 11, 2024
1 parent 77003af commit 4b5e373
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
16 changes: 8 additions & 8 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export default tseslint.config(
ignores: [
'docs/*',
'dist/*',
'node_modules/*',
],
'node_modules/*'
]
},
eslint.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
Expand All @@ -24,11 +24,11 @@ export default tseslint.config(
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
tsconfigRootDir: import.meta.dirname
}
},
plugins: {
'@stylistic': stylistic,
'@stylistic': stylistic
},
rules: {
'@stylistic/semi': [ 'error' ],
Expand All @@ -50,7 +50,7 @@ export default tseslint.config(
'@stylistic/arrow-spacing': 'error',
'@stylistic/switch-colon-spacing': [ 'error', { 'after': true, 'before': false }],
'camelcase': 'off',
'require-await': 'error',
},
},
'require-await': 'error'
}
}
);
22 changes: 11 additions & 11 deletions src/guild/Player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export enum PlayerEventType {
TRACK_END_EVENT = 'TrackEndEvent',
TRACK_EXCEPTION_EVENT = 'TrackExceptionEvent',
TRACK_STUCK_EVENT = 'TrackStuckEvent',
WEBSOCKET_CLOSED_EVENT = 'WebSocketClosedEvent',
WEBSOCKET_CLOSED_EVENT = 'WebSocketClosedEvent'
}

export interface Band {
Expand Down Expand Up @@ -227,18 +227,18 @@ export class Player extends EventEmitter implements IPlayer {
guildId: this.guildId,
playerOptions: {
track: {
encoded: this.track,
encoded: this.track
},
position: this.position,
paused: this.paused,
filters: this.filters,
voice: {
token: connection.serverUpdate!.token,
endpoint: connection.serverUpdate!.endpoint,
sessionId: connection.sessionId!,
sessionId: connection.sessionId!
},
volume: this.volume,
},
volume: this.volume
}
};
}

Expand Down Expand Up @@ -425,7 +425,7 @@ export class Player extends EventEmitter implements IPlayer {
rotation: null,
distortion: null,
channelMix: null,
lowPass: null,
lowPass: null
});
}

Expand Down Expand Up @@ -460,7 +460,7 @@ export class Player extends EventEmitter implements IPlayer {
const data = {
guildId: this.guildId,
noReplace,
playerOptions,
playerOptions
};

await this.node.rest.updatePlayer(data);
Expand Down Expand Up @@ -505,9 +505,9 @@ export class Player extends EventEmitter implements IPlayer {
voice: {
token: connection.serverUpdate!.token,
endpoint: connection.serverUpdate!.endpoint,
sessionId: connection.sessionId!,
},
},
sessionId: connection.sessionId!
}
}
};
await this.node.rest.updatePlayer(playerUpdate);
}
Expand Down Expand Up @@ -549,7 +549,7 @@ export class Player extends EventEmitter implements IPlayer {
this.node.emit(
'debug',
this.node.name,
`[Player] -> [Node] : Unknown Player Event Type, Data => ${JSON.stringify(json)}`,
`[Player] -> [Node] : Unknown Player Event Type, Data => ${JSON.stringify(json)}`
);
}
}
Expand Down

0 comments on commit 4b5e373

Please sign in to comment.