Add reloads to paging lol
This commit is contained in:
parent
6d585ce3af
commit
2989f40e3b
|
@ -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 });
|
||||
|
|
Loading…
Reference in a new issue