Retrieve main player and guild queue in command

This commit is contained in:
Marius Begby committed 2023-07-05 15:32:29 +02:00
1 parent 5c27855559
commit 761807ebe4
2 files changed
+22 -7

No files matched your search

+4 -5
View File
@@ -66,7 +66,7 @@ client.on('interactionCreate', async (interaction) => {
try {
await interaction.deferReply();
await command.run({ interaction, player });
await command.run({ interaction });
console.log(
`Command '/${interaction.commandName}' was executed successfully.`
);
@@ -76,10 +76,9 @@ client.on('interactionCreate', async (interaction) => {
`Command '/${interaction.commandName}' failed unexpectedly.`
);
await interaction.editReply({
content: 'There was an error while executing this command!',
ephemeral: true
});
await interaction.editReply(
'There was an error while executing this command!'
);
}
});