Pause resume loop

This commit is contained in:
Myx
2023-06-23 10:34:55 +02:00
parent d9408907dd
commit 8c08c088f1
10 changed files with 199 additions and 59 deletions

View File

@@ -19,7 +19,21 @@ async function registerCommands(clientId, token) {
option.setName('song')
.setDescription('Add song from YouTube, Spotify, SoundCloud, etc. to the queue')
.setRequired(true)
)
),
new SlashCommandBuilder()
.setName('pause')
.setDescription('Pauses the current song!'),
new SlashCommandBuilder()
.setName('resume')
.setDescription('Resumes the current song!'),
new SlashCommandBuilder()
.setName('loop')
.setDescription('Loops the current song!')
.addBooleanOption(option =>
option.setName('looping')
.setDescription('Enable or disable looping')
.setRequired(true)
)
];
const rest = new REST({ version: '9' }).setToken(token);