summary refs log tree commit diff
path: root/api/src/schema/Roles.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-03 05:03:11 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-03 05:03:11 +0200
commite2ea701920f528b09c410842fcfe57ec3e3ba875 (patch)
tree429a4a3426730aa2649356b4f91cb720561e0709 /api/src/schema/Roles.ts
parent:see_no_evil: add database.db to .gitignore (diff)
downloadserver-e2ea701920f528b09c410842fcfe57ec3e3ba875.tar.xz
:sparkles: guild position update
Diffstat (limited to 'api/src/schema/Roles.ts')
-rw-r--r--api/src/schema/Roles.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/api/src/schema/Roles.ts b/api/src/schema/Roles.ts

index 1e5f560f..e1a34ae8 100644 --- a/api/src/schema/Roles.ts +++ b/api/src/schema/Roles.ts
@@ -15,3 +15,15 @@ export interface RoleModifySchema { mentionable?: boolean; // whether the role should be mentionable position?: number; } + +export const RolePositionUpdateSchema = [ + { + id: String, + position: Number + } +]; + +export type RolePositionUpdateSchema = { + id: string; + position: number; +}[];