mirror of
https://github.com/BluemediaDev/muse.git
synced 2025-06-27 17:22:42 +02:00
Add split
command (#363)
Co-authored-by: Max Isom <hi@maxisom.me> Co-authored-by: Max Isom <codetheweb@users.noreply.github.com>
This commit is contained in:
parent
d438d46c09
commit
3dd1f21945
8 changed files with 188 additions and 61 deletions
|
@ -24,7 +24,10 @@ export default class implements Command {
|
|||
.setDescription('add track to the front of the queue'))
|
||||
.addBooleanOption(option => option
|
||||
.setName('shuffle')
|
||||
.setDescription('shuffle the input if you\'re adding multiple tracks')))
|
||||
.setDescription('shuffle the input if you\'re adding multiple tracks'))
|
||||
.addBooleanOption(option => option
|
||||
.setName('split')
|
||||
.setDescription('if a track has chapters, split it')))
|
||||
.addSubcommand(subcommand => subcommand
|
||||
.setName('list')
|
||||
.setDescription('list all favorites'))
|
||||
|
@ -116,6 +119,7 @@ export default class implements Command {
|
|||
query: favorite.query,
|
||||
shuffleAdditions: interaction.options.getBoolean('shuffle') ?? false,
|
||||
addToFrontOfQueue: interaction.options.getBoolean('immediate') ?? false,
|
||||
shouldSplitChapters: interaction.options.getBoolean('split') ?? false,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue