diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2022-07-05 21:03:55 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2022-07-05 21:03:55 -0400 |
| commit | 7630b6ca8445cc8f6fc5dfb5284ab23b7c26be46 (patch) | |
| tree | 165153666dd6b6c6ba9a4965c9255a7a4d36d6ce /commands/skip.js | |
| parent | ce752e213a0b3515c48b2fa04407a220eed2d788 (diff) | |
| download | DLAP-7630b6ca8445cc8f6fc5dfb5284ab23b7c26be46.tar.gz DLAP-7630b6ca8445cc8f6fc5dfb5284ab23b7c26be46.tar.bz2 DLAP-7630b6ca8445cc8f6fc5dfb5284ab23b7c26be46.zip | |
Removed control command; Added functionality to leave, skip, status
Diffstat (limited to 'commands/skip.js')
| -rw-r--r-- | commands/skip.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/commands/skip.js b/commands/skip.js index 11a0c83..4860209 100644 --- a/commands/skip.js +++ b/commands/skip.js @@ -20,12 +20,15 @@ ***************************************************************************/ import { SlashCommandBuilder } from '@discordjs/builders' +import { audio, player, searchAudio } from "../AudioBackend.js"; export default { data: new SlashCommandBuilder() .setName('skip') .setDescription('Skips the track'), - async execute(interaction) { - + async execute(interaction, bot) { + player.stop(); + await searchAudio(bot, interaction); + return await interaction.reply({content:`Skipping ${audio}`, ephemeral:true}); }, };
\ No newline at end of file |
