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