renamed/moved commands

This commit is contained in:
2022-02-11 13:18:17 -06:00
parent e444167f07
commit 3ed56b7927
6 changed files with 115 additions and 69 deletions

View File

@@ -31,16 +31,31 @@ CLIENT.on('interactionCreate', async interaction => {
try {
if (interaction.commandName === 'queue')
await QueueCommands.queue(interaction);
else if (interaction.commandName === 'join')
await QueueCommands.join(interaction);
else if (interaction.commandName === 'leave')
await QueueCommands.leave(interaction);
else if (interaction.commandName === 'stop')
await QueueCommands.stop(interaction);
else if (interaction.commandName === 'player')
await getPlayerInteraction(interaction);
switch (interaction.commandName) {
//mod commands
case 'open':
await QueueCommands.open(interaction);
break;
case 'close':
await QueueCommands.close(interaction);
break;
//general commands
case 'queue':
await QueueCommands.queue(interaction);
break;
case 'join':
await QueueCommands.join(interaction);
break;
case 'leave':
await QueueCommands.leave(interaction);
break;
case 'player':
await getPlayerInteraction(interaction);
break;
}
} catch (e) {