diff --git a/src/audioplayer/AudioPlayersManager.ts b/src/audioplayer/AudioPlayersManager.ts index 44c876f..30b2702 100644 --- a/src/audioplayer/AudioPlayersManager.ts +++ b/src/audioplayer/AudioPlayersManager.ts @@ -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)] diff --git a/src/audioplayer/util/downloadSong.ts b/src/audioplayer/util/downloadSong.ts index f4ccdfd..ec8cf56 100644 --- a/src/audioplayer/util/downloadSong.ts +++ b/src/audioplayer/util/downloadSong.ts @@ -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; } diff --git a/src/commands/audio/stop.command.ts b/src/commands/audio/stop.command.ts index ad0001b..7ff7289 100644 --- a/src/commands/audio/stop.command.ts +++ b/src/commands/audio/stop.command.ts @@ -1,6 +1,7 @@ import { ICommand } from '../../CommandTypes.js'; import { - EmbedBuilder, Guild, + EmbedBuilder, + Guild, GuildMember, Message, PermissionsBitField,