Add reloads to paging lol

This commit is contained in:
Christopher Cookman 2025-01-25 12:30:30 -07:00
parent 6d585ce3af
commit 2989f40e3b

View file

@ -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 });