More page stuff

This commit is contained in:
Christopher Cookman 2025-01-25 12:27:35 -07:00
parent 2f59ff4147
commit b61e48c535

View file

@ -23,5 +23,14 @@ module.exports.execute = async (interaction) => {
} }
}); });
break; 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;
} }
} }