mirror of
https://github.com/informaticker/discord-jellyfin-bot.git
synced 2024-11-23 18:21:55 +01:00
🐛 Inverted pause states for pause command
This commit is contained in:
parent
a31928ab15
commit
86ffb19c9a
@ -122,11 +122,11 @@ export class DiscordVoiceService {
|
|||||||
togglePaused(): boolean {
|
togglePaused(): boolean {
|
||||||
if (this.isPaused()) {
|
if (this.isPaused()) {
|
||||||
this.unpause();
|
this.unpause();
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.pause();
|
this.pause();
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
disconnect(): GenericTryHandler {
|
disconnect(): GenericTryHandler {
|
||||||
|
@ -11,7 +11,6 @@ import {
|
|||||||
import { Logger } from '@nestjs/common/services';
|
import { Logger } from '@nestjs/common/services';
|
||||||
import {
|
import {
|
||||||
ComponentType,
|
ComponentType,
|
||||||
EmbedBuilder,
|
|
||||||
Events,
|
Events,
|
||||||
GuildMember,
|
GuildMember,
|
||||||
Interaction,
|
Interaction,
|
||||||
@ -19,7 +18,6 @@ import {
|
|||||||
} from 'discord.js';
|
} from 'discord.js';
|
||||||
import { JellyfinSearchService } from '../clients/jellyfin/jellyfin.search.service';
|
import { JellyfinSearchService } from '../clients/jellyfin/jellyfin.search.service';
|
||||||
import { TrackRequestDto } from '../models/track-request.dto';
|
import { TrackRequestDto } from '../models/track-request.dto';
|
||||||
import { DefaultJellyfinColor } from '../types/colors';
|
|
||||||
|
|
||||||
import { DiscordMessageService } from '../clients/discord/discord.message.service';
|
import { DiscordMessageService } from '../clients/discord/discord.message.service';
|
||||||
|
|
||||||
@ -192,18 +190,10 @@ export class PlayItemCommand
|
|||||||
|
|
||||||
await interaction.update({
|
await interaction.update({
|
||||||
embeds: [
|
embeds: [
|
||||||
new EmbedBuilder()
|
this.discordMessageService.buildMessage({
|
||||||
.setAuthor({
|
title: 'Jellyfin Search',
|
||||||
name: 'Jellyfin Search',
|
description: `**Duration**: ${duration}\n**Artists**: ${artists}\n\nTrack was added to the queue at position ${addedIndex}`,
|
||||||
iconURL:
|
}),
|
||||||
'https://github.com/walkxcode/dashboard-icons/blob/main/png/jellyfin.png?raw=true',
|
|
||||||
})
|
|
||||||
.setTitle(item.Name)
|
|
||||||
.setDescription(
|
|
||||||
`**Duration**: ${duration}\n**Artists**: ${artists}\n\nTrack was added to the queue at position ${addedIndex}`,
|
|
||||||
)
|
|
||||||
.setColor(DefaultJellyfinColor)
|
|
||||||
.toJSON(),
|
|
||||||
],
|
],
|
||||||
components: [],
|
components: [],
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user