From 2989f40e3b1adf6431aab851f7c5ff3ef7ec2857 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Sat, 25 Jan 2025 12:30:30 -0700 Subject: [PATCH] Add reloads to paging lol --- interactionHandlers/commands/paging.js | 2 ++ 1 file changed, 2 insertions(+) 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 });