diff --git a/interactionHandlers/commands/paging.js b/interactionHandlers/commands/paging.js index d548275..0027bbb 100644 --- a/interactionHandlers/commands/paging.js +++ b/interactionHandlers/commands/paging.js @@ -17,6 +17,7 @@ module.exports.execute = async (interaction) => { case 'add': fpbx.joinPageGroup(lookup.extension, pageGroup).then(async (res) => { if (res == true) { + await fpbx.reload(); await interaction.reply({ content: `Added!`, ephemeral: true }); } else { await interaction.reply({ content: `Something went wrong (Or you're already in that page group!)`, ephemeral: true }); @@ -26,6 +27,7 @@ module.exports.execute = async (interaction) => { case "remove": fpbx.leavePageGroup(lookup.extension, pageGroup).then(async (res) => { if (res == true) { + await fpbx.reload(); await interaction.reply({ content: `Removed!`, ephemeral: true }); } else { await interaction.reply({ content: `Something went wrong (Or you're not in that page group!)`, ephemeral: true });