diff --git a/interactionHandlers/commands/manage.js b/interactionHandlers/commands/manage.js index a6a95a5..d9f3995 100644 --- a/interactionHandlers/commands/manage.js +++ b/interactionHandlers/commands/manage.js @@ -122,7 +122,7 @@ module.exports.execute = async (interaction) => { break; case "list-orphans": // List all orphaned extensions (extensions without a Discord user linked) await interaction.deferReply({ ephemeral: true }); - const [orphans] = await pool.query('SELECT id,description FROM asterisk.devices WHERE id NOT IN (SELECT extension FROM asterisk.discord_users)'); + const orphans = await pool.query('SELECT id,description FROM asterisk.devices WHERE id NOT IN (SELECT extension FROM asterisk.discord_users)'); if (orphans.length === 0) { await interaction.editReply({ content: 'No orphaned extensions found!', ephemeral: true }); return; @@ -133,7 +133,7 @@ module.exports.execute = async (interaction) => { ephemeral: true }); break; - + default: await interaction.reply({ content: 'Unknown subcommand!', ephemeral: true }); break;