Skip to content

Commit

Permalink
Fixed Prettier style rules
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexInCube committed Aug 6, 2024
1 parent d604d74 commit 3af944e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/audioplayer/AudioPlayersManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ export class AudioPlayersManager {
errorName = song.name!;
}

if (queue.songs.length === 0) await this.stop(queue.id)
if (queue.songs.length === 0) await this.stop(queue.id);

await queue.textChannel?.send({
embeds: [generateErrorEmbed(errorMessage, errorName)]
Expand Down
10 changes: 5 additions & 5 deletions src/audioplayer/util/downloadSong.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@ export function DownloadSongErrorGetLocale(errorMessage: DownloadSongMessage) {
});
}

const localeToken = `commands:download_song_error_${errorMessage}`
const locale = i18next.t(localeToken)
const localeToken = `commands:download_song_error_${errorMessage}`;
const locale = i18next.t(localeToken);

if (localeToken !== locale){
return locale
if (localeToken !== locale) {
return locale;
}

return errorMessage
return errorMessage;
}
3 changes: 2 additions & 1 deletion src/commands/audio/stop.command.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ICommand } from '../../CommandTypes.js';
import {
EmbedBuilder, Guild,
EmbedBuilder,
Guild,
GuildMember,
Message,
PermissionsBitField,
Expand Down

0 comments on commit 3af944e

Please sign in to comment.