feat: add access control

This commit is contained in:
41666 2021-07-18 01:57:03 -04:00
parent 9c07ff0e54
commit 3f45153b66
47 changed files with 1084 additions and 164 deletions

View file

@ -21,6 +21,13 @@ export type GuildData = {
categories: Category[];
features: Features;
auditLogWebhook: string | null;
accessControl: GuildAccessControl;
};
export type GuildAccessControl = {
allowList: Role['id'][];
blockList: Role['id'][];
blockPending: boolean;
};
export type GuildDataUpdate = Omit<Omit<GuildData, 'features'>, 'id'>;