More page stuff
This commit is contained in:
parent
2f59ff4147
commit
b61e48c535
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue