mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-03 06:28:53 +00:00
style(): fixed formatting issues
This commit is contained in:
1 parent
f14b1256ff
commit
105dd3570e
5 files changed
+6
-8
No files matched your search
@@ -1,11 +1,9 @@
|
||||
import { ExtendedGuildQueuePlayerNode } from '../../types/eventTypes';
|
||||
import { EmbedOptions } from '../../types/configTypes';
|
||||
import { randomUUID as uuidv4 } from 'node:crypto';
|
||||
import loggerModule from '../../services/logger';
|
||||
import { Track } from 'discord-player';
|
||||
import { Snowflake } from 'discord.js';
|
||||
import { Logger } from 'pino';
|
||||
import config from 'config';
|
||||
|
||||
// Emitted when the audio player finish playing a track.
|
||||
module.exports = {
|
||||
@@ -38,4 +36,4 @@ module.exports = {
|
||||
|
||||
logger.debug('playerFinish event: Previous now-playing message deleted.');
|
||||
}
|
||||
};
|
||||
};
|
||||
@@ -63,10 +63,10 @@ module.exports = {
|
||||
queue.metadata.lastMessage = announceMessage;
|
||||
}
|
||||
} catch (error) {
|
||||
logger.error(error, `playerStart event: Error trying to send now-playing message.`);
|
||||
logger.error(error, 'playerStart event: Error trying to send now-playing message.');
|
||||
return;
|
||||
}
|
||||
|
||||
logger.debug('playerStart event: now-playing message sent.');
|
||||
}
|
||||
};
|
||||
};
|
||||
@@ -190,7 +190,7 @@ class PlayCommand extends BaseSlashCommandInteraction {
|
||||
embedFooter = this.getDisplayFooterTrackPosition(posistionFirstTrackInPlaylist, translator);
|
||||
}
|
||||
} else if (queue.currentTrack === track && queue.tracks.data.length === 0) {
|
||||
if (!this.embedOptions.behavior.enablePlayerStartMessages) {
|
||||
if (!this.embedOptions.behavior.enablePlayerStartMessages) {
|
||||
message =
|
||||
translator('musicPlayerCommon.nowPlayingTitle', {
|
||||
icon: this.embedOptions.icons.audioStartedPlaying
|
||||
|
||||
Vendored
+1
-1
@@ -14,4 +14,4 @@ export type ExtendedGuildQueuePlayerNode = {
|
||||
channel: BaseGuildTextChannel;
|
||||
lastMessage: Message;
|
||||
};
|
||||
} & GuildQueuePlayerNode<unknown>;
|
||||
} & GuildQueuePlayerNode<unknown>;
|
||||
Reference in new issue
Block a user