aboutsummaryrefslogtreecommitdiff
path: root/commands/leave.js
diff options
context:
space:
mode:
Diffstat (limited to 'commands/leave.js')
-rw-r--r--commands/leave.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/commands/leave.js b/commands/leave.js
index e1fa67d..5024488 100644
--- a/commands/leave.js
+++ b/commands/leave.js
@@ -20,13 +20,15 @@
***************************************************************************/
import { SlashCommandBuilder } from '@discordjs/builders'
+import { destroyAudio } from "../AudioBackend.js";
export default {
data: new SlashCommandBuilder()
.setName('leave')
.setDescription('Leaves the voice chat'),
async execute(interaction) {
-
-
+ console.log('Leaving voice channel...');
+ await destroyAudio(interaction);
+ return await interaction.reply({content:'Leaving voice channel', ephemeral:true});
},
}; \ No newline at end of file