feat(permissions): Adds server permissions
This commit is contained in:
parent
d46bbd84c5
commit
cf9c88a2d6
24 changed files with 415 additions and 69 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue