fix: Add more logging to all commands

This commit is contained in:
Marius Begby committed 2023-07-19 00:44:32 +02:00
1 parent 389e60baad
commit 8ab4cbead2
13 files changed
+106 -7

No files matched your search

+4
View File
@@ -1,3 +1,4 @@
const logger = require('../../services/logger');
const { embedOptions } = require('../../config');
const { notInVoiceChannel } = require('../../utils/validation/voiceChannelValidation');
const { queueDoesNotExist } = require('../../utils/validation/queueValidation');
@@ -30,6 +31,8 @@ module.exports = {
const removeTrackNumber = interaction.options.getNumber('tracknumber');
if (removeTrackNumber > queue.tracks.data.length) {
logger.debug(`User used command ${interaction.commandName} but track number was higher than total tracks.`);
return await interaction.editReply({
embeds: [
new EmbedBuilder()
@@ -46,6 +49,7 @@ module.exports = {
let durationFormat =
removedTrack.raw.duration === 0 || removedTrack.duration === '0:00' ? '' : `\`${removedTrack.duration}\``;
logger.debug(`User used command ${interaction.commandName} and removed track.`);
return await interaction.editReply({
embeds: [
new EmbedBuilder()