mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-12-27 04:15:38 -05:00
Add skip command to music player
This commit is contained in:
parent
8363213d69
commit
b9bcede3ea
@ -69,6 +69,10 @@ export default {
|
|||||||
remove: ()=>{
|
remove: ()=>{
|
||||||
useQueue(interaction.guildId).removeTrack(interaction.options.getNumber('id',true));
|
useQueue(interaction.guildId).removeTrack(interaction.options.getNumber('id',true));
|
||||||
interaction.reply('Song has been removed from the queue.')
|
interaction.reply('Song has been removed from the queue.')
|
||||||
|
},
|
||||||
|
skip: ()=>{
|
||||||
|
useQueue(interaction.guildId).node.skip();
|
||||||
|
interaction.reply('Skipped the current song, now playing the next one in queue.')
|
||||||
}
|
}
|
||||||
} as any)[interaction.options.getSubcommand()]();
|
} as any)[interaction.options.getSubcommand()]();
|
||||||
},
|
},
|
||||||
@ -85,6 +89,9 @@ export default {
|
|||||||
.addSubcommand(x=>x
|
.addSubcommand(x=>x
|
||||||
.setName('stop')
|
.setName('stop')
|
||||||
.setDescription('Stop playing music and disconnect the bot from voice channel'))
|
.setDescription('Stop playing music and disconnect the bot from voice channel'))
|
||||||
|
.addSubcommand(x=>x
|
||||||
|
.setName('skip')
|
||||||
|
.setDescription('Skip the current song and play the next one'))
|
||||||
.addSubcommand(x=>x
|
.addSubcommand(x=>x
|
||||||
.setName('pause')
|
.setName('pause')
|
||||||
.setDescription('Pause/unpause the music'))
|
.setDescription('Pause/unpause the music'))
|
||||||
|
Loading…
Reference in New Issue
Block a user