summary refs log tree commit diff
path: root/src/schema/User.ts
diff options
context:
space:
mode:
authorIntevel ツ <59223342+Intevel@users.noreply.github.com>2021-05-06 22:30:47 +0200
committerIntevel ツ <59223342+Intevel@users.noreply.github.com>2021-05-06 22:30:47 +0200
commit8d077690d659032cfc6b1308fb7858174b8fecf4 (patch)
tree7b36a74d2f15c631acdc312f4b553e08aac10218 /src/schema/User.ts
parentMerge branch 'master' of https://github.com/fosscord/fosscord-api (diff)
downloadserver-8d077690d659032cfc6b1308fb7858174b8fecf4.tar.xz
[Route] PATCH /users/:id
Diffstat (limited to 'src/schema/User.ts')
-rw-r--r--src/schema/User.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/schema/User.ts b/src/schema/User.ts

index 2b74a433..15f27088 100644 --- a/src/schema/User.ts +++ b/src/schema/User.ts
@@ -41,3 +41,13 @@ export interface UserUpdateSchema { public_flags: bigint; guilds: string[]; } + +export const UserModifySchema = { + username: String, + avatar: String || null, +}; + +export interface UserModifySchema { + username: string; + avatar: string | null; +}