Skip to content

Commit

Permalink
chore: update eslint & lint files
Browse files Browse the repository at this point in the history
  • Loading branch information
0t4u committed Aug 13, 2024
1 parent 8f801e2 commit 541610c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"ws": "^8.18.0"
},
"devDependencies": {
"@shipgirl/eslint-config": "^0.2.1",
"@shipgirl/eslint-config": "^0.2.2",
"@types/node": "^22.2.0",
"@types/ws": "^8.5.12",
"eslint": "^9.9.0",
Expand Down
2 changes: 1 addition & 1 deletion src/connectors/libs/Seyfert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ export class Seyfert extends Connector {
}
};
}
}
}
2 changes: 1 addition & 1 deletion src/connectors/libs/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from './DiscordJS';
export * from './Eris';
export * from './OceanicJS';
export * from './Seyfert';
export * from './Seyfert';
12 changes: 5 additions & 7 deletions src/guild/Player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ export class Player extends EventEmitter implements IPlayer {
return {
guildId: this.guildId,
playerOptions: {
track: {
encoded: this.track
track: {
encoded: this.track
},
position: this.position,
paused: this.paused,
Expand Down Expand Up @@ -260,8 +260,8 @@ export class Player extends EventEmitter implements IPlayer {
lastNode = this.node.manager.getIdealNode(connection);

await this.destroy();
try {

try {
this.node = node;
await this.resume();
return true;
Expand Down Expand Up @@ -323,7 +323,6 @@ export class Player extends EventEmitter implements IPlayer {
* Sets the filter volume of the player
* @param volume Target volume 0.0-5.0
*/
// eslint-disable-next-line require-await
async setFilterVolume(volume: number): Promise<void> {
return this.setFilters({ volume });
}
Expand All @@ -332,7 +331,6 @@ export class Player extends EventEmitter implements IPlayer {
* Change the equalizer settings applied to the currently playing track
* @param equalizer An array of objects that conforms to the Bands type that define volumes at different frequencies
*/
// eslint-disable-next-line require-await
public async setEqualizer(equalizer: Band[]): Promise<void> {
return this.setFilters({ equalizer });
}
Expand Down Expand Up @@ -436,7 +434,7 @@ export class Player extends EventEmitter implements IPlayer {
public async resume(options: ResumeOptions = {}, noReplace = false): Promise<void> {
const data = this.data;

if (typeof options.position === 'number')
if (typeof options.position === 'number')
data.playerOptions.position = options.position;
if (typeof options.endTime === 'number')
data.playerOptions.endTime = options.endTime;
Expand Down

0 comments on commit 541610c

Please sign in to comment.