Skip to content

Commit

Permalink
Merge pull request #750 from hwangsihu/biome-lint
Browse files Browse the repository at this point in the history
Biome lint
  • Loading branch information
LucasB25 authored Nov 5, 2024
2 parents 517d24b + 3eead70 commit 5717370
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/commands/music/Lyrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,7 @@ export default class Lyrics extends Command {
});
}
} catch (error) {
// biome-ignore lint/suspicious/noConsole: <explanation>
console.error(error);
client.logger.error(error);
await ctx.editMessage({
embeds: [embed.setColor(client.color.red).setDescription(ctx.locale('cmd.lyrics.errors.lyrics_error'))],
});
Expand Down
6 changes: 3 additions & 3 deletions src/commands/music/Play.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ export default class Play extends Command {
public async autocomplete(interaction: AutocompleteInteraction): Promise<void> {
const focusedValue = interaction.options.getFocused(true);

if (!focusedValue || !focusedValue.value.trim()) {
return interaction.respond([]).catch(() => {});
if (!focusedValue?.value.trim()) {
return interaction.respond([]);
}

const res = await this.client.manager.search(focusedValue.value.trim(), interaction.user);
Expand All @@ -118,7 +118,7 @@ export default class Play extends Command {
});
}

return await interaction.respond(songs).catch(() => {});
return await interaction.respond(songs);
}
}

Expand Down
6 changes: 3 additions & 3 deletions src/commands/music/PlayNext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ export default class PlayNext extends Command {
public async autocomplete(interaction: AutocompleteInteraction): Promise<void> {
const focusedValue = interaction.options.getFocused(true);

if (!focusedValue || !focusedValue.value.trim()) {
return interaction.respond([]).catch(() => {});
if (!focusedValue?.value.trim()) {
return interaction.respond([]);
}

const res = await this.client.manager.search(focusedValue.value.trim(), interaction.user);
Expand All @@ -118,7 +118,7 @@ export default class PlayNext extends Command {
});
}

return await interaction.respond(songs).catch(() => {});
return await interaction.respond(songs);
}
}

Expand Down

0 comments on commit 5717370

Please sign in to comment.