mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 06:28:53 +00:00
fix: update voice channel validator logging
This commit is contained in:
1 parent
9d9087d4c3
commit
22109823e1
16 files changed
+95
-70
No files matched your search
@@ -83,7 +83,7 @@ module.exports = {
|
||||
|
||||
return interaction.respond(response);
|
||||
},
|
||||
execute: async ({ interaction, client, executionId }) => {
|
||||
execute: async ({ interaction, executionId }) => {
|
||||
const logger = require('../../services/logger').child({
|
||||
source: 'play.js',
|
||||
module: 'slashCommand',
|
||||
@@ -91,7 +91,7 @@ module.exports = {
|
||||
executionId: executionId
|
||||
});
|
||||
|
||||
if (await notInVoiceChannel(interaction, client)) {
|
||||
if (await notInVoiceChannel({ interaction, executionId })) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ module.exports = {
|
||||
}
|
||||
|
||||
let queue = useQueue(interaction.guild.id);
|
||||
if (queue && (await notInSameVoiceChannel(interaction, queue))) {
|
||||
if (queue && (await notInSameVoiceChannel({ interaction, queue, executionId }))) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user