fix: update voice channel validator logging

This commit is contained in:
Marius Begby committed 2023-08-26 14:21:37 +02:00
1 parent 9d9087d4c3
commit 22109823e1
16 files changed
+95 -70

No files matched your search

+3 -3
View File
@@ -13,8 +13,8 @@ module.exports = {
.setDescription('Clear the track queue and remove the bot from voice channel.')
.setDMPermission(false)
.setNSFW(false),
execute: async ({ interaction }) => {
if (await notInVoiceChannel(interaction)) {
execute: async ({ interaction, executionId }) => {
if (await notInVoiceChannel({ interaction, executionId })) {
return;
}
@@ -35,7 +35,7 @@ module.exports = {
});
}
if (await notInSameVoiceChannel(interaction, queue)) {
if (await notInSameVoiceChannel({ interaction, queue, executionId })) {
return;
}