From b61e48c5354a08bb4b57e00de3b9193dd244ef00 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Sat, 25 Jan 2025 12:27:35 -0700 Subject: [PATCH] More page stuff --- interactionHandlers/commands/paging.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/interactionHandlers/commands/paging.js b/interactionHandlers/commands/paging.js index 6502f12..d548275 100644 --- a/interactionHandlers/commands/paging.js +++ b/interactionHandlers/commands/paging.js @@ -23,5 +23,14 @@ module.exports.execute = async (interaction) => { } }); break; + case "remove": + fpbx.leavePageGroup(lookup.extension, pageGroup).then(async (res) => { + if (res == true) { + 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 }); + } + }); + break; } } \ No newline at end of file