mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 14:38:49 +00:00
Retrieve main player and guild queue in command
This commit is contained in:
1 parent
5c27855559
commit
761807ebe4
2 files changed
+22
-7
No files matched your search
@@ -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!'
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user