aboutsummaryrefslogtreecommitdiff
path: root/commands/leave.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2022-07-05 21:03:55 -0400
committerAndrew Lee <alee14498@protonmail.com>2022-07-05 21:03:55 -0400
commit7630b6ca8445cc8f6fc5dfb5284ab23b7c26be46 (patch)
tree165153666dd6b6c6ba9a4965c9255a7a4d36d6ce /commands/leave.js
parentce752e213a0b3515c48b2fa04407a220eed2d788 (diff)
downloadDLAP-7630b6ca8445cc8f6fc5dfb5284ab23b7c26be46.tar.gz
DLAP-7630b6ca8445cc8f6fc5dfb5284ab23b7c26be46.tar.bz2
DLAP-7630b6ca8445cc8f6fc5dfb5284ab23b7c26be46.zip
Removed control command; Added functionality to leave, skip, status
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