feat(permissions): Adds server permissions

This commit is contained in:
Michel Fedde 2025-06-24 20:58:46 +02:00
parent d46bbd84c5
commit cf9c88a2d6
24 changed files with 415 additions and 69 deletions

View file

@ -38,6 +38,10 @@ export class GroupSelection {
if (!group) {
throw new UserError("No group found");
}
if (group.role.server !== interaction.guildId) {
throw new Error("Invalid access to group detected...");
}
return <GroupModel>group;
}