From 08e837bf5559e9680fc8cb99bd05b93f8eb2cac5 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Thu, 12 Aug 2021 20:09:35 +0200 Subject: :sparkles: api --- api/src/schema/Roles.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 api/src/schema/Roles.ts (limited to 'api/src/schema/Roles.ts') diff --git a/api/src/schema/Roles.ts b/api/src/schema/Roles.ts new file mode 100644 index 00000000..f662e61b --- /dev/null +++ b/api/src/schema/Roles.ts @@ -0,0 +1,17 @@ +export const RoleModifySchema = { + $name: String, + $permissions: BigInt, + $color: Number, + $hoist: Boolean, // whether the role should be displayed separately in the sidebar + $mentionable: Boolean, // whether the role should be mentionable + $position: Number +}; + +export interface RoleModifySchema { + name?: string; + permissions?: BigInt; + color?: number; + hoist?: boolean; // whether the role should be displayed separately in the sidebar + mentionable?: boolean; // whether the role should be mentionable + position?: number; +} -- cgit 1.5.1