mirror of
https://github.com/informaticker/discord-jellyfin-bot.git
synced 2024-11-23 18:21:55 +01:00
Merge branch 'nestjs-migration' of https://github.com/manuel-rw/jellyfin-discord-music-bot into nestjs-migration
This commit is contained in:
commit
fdf190c2b5
@ -53,7 +53,7 @@ export class DiscordMessageService {
|
||||
text: `${date}`,
|
||||
});
|
||||
|
||||
if (description !== undefined && description.length > 0) {
|
||||
if (!description && description.length >= 1) {
|
||||
embedBuilder = embedBuilder.setDescription(description);
|
||||
}
|
||||
|
||||
|
@ -61,7 +61,7 @@ export class JellyfinService {
|
||||
}
|
||||
|
||||
destroy() {
|
||||
if (this.api === undefined) {
|
||||
if (!this.api) {
|
||||
this.logger.warn(
|
||||
'Jellyfin Api Client was unexpectitly undefined. Graceful destroy has failed',
|
||||
);
|
||||
|
@ -64,7 +64,7 @@ export class PlayItemCommand
|
||||
),
|
||||
);
|
||||
|
||||
if (parsedItems.length < 1) {
|
||||
if (parsedItems.length === 0) {
|
||||
return {
|
||||
embeds: [
|
||||
this.discordMessageService.buildErrorMessage({
|
||||
|
Loading…
Reference in New Issue
Block a user