renamed/moved commands
This commit is contained in:
35
src/index.ts
35
src/index.ts
@@ -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) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user