mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-03 22:15:37 +00:00
fix: Add more logging to all commands
This commit is contained in:
1 parent
389e60baad
commit
8ab4cbead2
13 files changed
+106
-7
No files matched your search
@@ -1,3 +1,4 @@
|
||||
const logger = require('../../services/logger');
|
||||
const { embedOptions } = require('../../config');
|
||||
const { notInVoiceChannel } = require('../../utils/validation/voiceChannelValidation');
|
||||
const { queueDoesNotExist, queueNoCurrentTrack } = require('../../utils/validation/queueValidation');
|
||||
@@ -31,6 +32,7 @@ module.exports = {
|
||||
|
||||
// change paused state to opposite of current state
|
||||
queue.node.setPaused(!queue.node.isPaused());
|
||||
logger.debug(`User used command ${interaction.commandName} and set paused state to ${queue.node.isPaused()}.`);
|
||||
|
||||
return await interaction.editReply({
|
||||
embeds: [
|
||||
|
||||
Reference in new issue
Block a user