mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 06:28:53 +00:00
fix: Small adjustments
This commit is contained in:
1 parent
14cb6b4936
commit
931c6eb140
7 files changed
+8
-7
No files matched your search
+1
-1
@@ -121,7 +121,7 @@ module.exports.playerOptions = {
|
|||||||
maxQueueSize: 10_000,
|
maxQueueSize: 10_000,
|
||||||
maxHistorySize: 100,
|
maxHistorySize: 100,
|
||||||
bufferingTimeout: 3_000,
|
bufferingTimeout: 3_000,
|
||||||
connectionTimeout: 30_000,
|
connectionTimeout: 20_000,
|
||||||
progressBar: {
|
progressBar: {
|
||||||
length: 14,
|
length: 14,
|
||||||
timecodes: false,
|
timecodes: false,
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ const command: CustomSlashCommandInteraction = {
|
|||||||
? ''
|
? ''
|
||||||
: `**${
|
: `**${
|
||||||
queue.repeatMode === 3 ? embedOptions.icons.autoplay : embedOptions.icons.loop
|
queue.repeatMode === 3 ? embedOptions.icons.autoplay : embedOptions.icons.loop
|
||||||
} Looping**\nLoop mode is set to ${loopModeUserString}. You can change it with **\`/loop\`**.`
|
} Looping**\nLoop mode is set to **\`${loopModeUserString}\`**. You can change it with **\`/loop\`**.`
|
||||||
}`
|
}`
|
||||||
)
|
)
|
||||||
.addFields(
|
.addFields(
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ const command: CustomSlashCommandInteraction = {
|
|||||||
? ''
|
? ''
|
||||||
: `**${
|
: `**${
|
||||||
queue.repeatMode === 3 ? embedOptions.icons.autoplay : embedOptions.icons.loop
|
queue.repeatMode === 3 ? embedOptions.icons.autoplay : embedOptions.icons.loop
|
||||||
} Looping**\nLoop mode is set to ${loopModeUserString}. You can change it with **\`/loop\`**.\n\n`
|
} Looping**\nLoop mode is set to **\`${loopModeUserString}\`**. You can change it with **\`/loop\`**.\n\n`
|
||||||
}`;
|
}`;
|
||||||
|
|
||||||
if (!currentTrack) {
|
if (!currentTrack) {
|
||||||
|
|||||||
@@ -172,7 +172,7 @@ const command: CustomSlashCommandInteraction = {
|
|||||||
queue.repeatMode === 3
|
queue.repeatMode === 3
|
||||||
? embedOptions.icons.autoplaying
|
? embedOptions.icons.autoplaying
|
||||||
: embedOptions.icons.looping
|
: embedOptions.icons.looping
|
||||||
} Looping**\nLoop mode is set to ${loopModeUserString}. You can change it with **\`/loop\`**.`
|
} Looping**\nLoop mode is set to **\`${loopModeUserString}\`**. You can change it with **\`/loop\`**.`
|
||||||
}`
|
}`
|
||||||
)
|
)
|
||||||
.setThumbnail(skippedTrack.thumbnail)
|
.setThumbnail(skippedTrack.thumbnail)
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ const component: CustomComponentInteraction = {
|
|||||||
guildId: interaction.guild?.id
|
guildId: interaction.guild?.id
|
||||||
});
|
});
|
||||||
|
|
||||||
logger.info('Received disable confirmation.');
|
logger.debug('Received disable confirmation.');
|
||||||
|
|
||||||
const queue = useQueue(interaction.guild!.id)!;
|
const queue = useQueue(interaction.guild!.id)!;
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ const component: CustomComponentInteraction = {
|
|||||||
guildId: interaction.guild?.id
|
guildId: interaction.guild?.id
|
||||||
});
|
});
|
||||||
|
|
||||||
logger.info('Received select menu confirmation.');
|
logger.debug('Received select menu confirmation.');
|
||||||
|
|
||||||
const selectMenuInteraction = interaction as StringSelectMenuInteraction;
|
const selectMenuInteraction = interaction as StringSelectMenuInteraction;
|
||||||
const queue = useQueue(selectMenuInteraction.guild!.id)!;
|
const queue = useQueue(selectMenuInteraction.guild!.id)!;
|
||||||
|
|||||||
@@ -18,9 +18,10 @@ const component: CustomComponentInteraction = {
|
|||||||
guildId: interaction.guild?.id
|
guildId: interaction.guild?.id
|
||||||
});
|
});
|
||||||
|
|
||||||
|
logger.debug(`Received skip confirmation for track id ${referenceId}.`);
|
||||||
|
|
||||||
const queue: NodeResolvable = useQueue(interaction.guild!.id)!;
|
const queue: NodeResolvable = useQueue(interaction.guild!.id)!;
|
||||||
|
|
||||||
logger.debug(`Received skip confirmation for track id ${referenceId}.`);
|
|
||||||
if (!queue || (queue.tracks.data.length === 0 && !queue.currentTrack)) {
|
if (!queue || (queue.tracks.data.length === 0 && !queue.currentTrack)) {
|
||||||
logger.debug('Tried skipping track but there was no queue.');
|
logger.debug('Tried skipping track but there was no queue.');
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user