diff --git a/lib/actions.ts b/lib/actions.ts index 11b6886..ce8e82a 100644 --- a/lib/actions.ts +++ b/lib/actions.ts @@ -612,6 +612,8 @@ export async function updateServerOwner(serverId: string, userId: string) { } export async function addServerMember(serverId: string, userId: string, withEvent: boolean) { + await checkPermission("servers/update/add-member", { serverId, userId, withEvent }); + const server = await mongo() .db("revolt") .collection("servers")