summary refs log tree commit diff
path: root/src/util/schemas/responses/UserRelationsResponse.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-04-19 01:24:51 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-04-19 01:24:51 +1000
commit4c6b1e8e16a1f44dc7c5f9abd74c0615d0e4e51c (patch)
treef9d9858cc5e2ffab76aa2f15d8d99a2facd35902 /src/util/schemas/responses/UserRelationsResponse.ts
parentEnforce theme_colors to be ints (diff)
downloadserver-4c6b1e8e16a1f44dc7c5f9abd74c0615d0e4e51c.tar.xz
Fix UserRelationsResponse schema
Diffstat (limited to 'src/util/schemas/responses/UserRelationsResponse.ts')
-rw-r--r--src/util/schemas/responses/UserRelationsResponse.ts16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/util/schemas/responses/UserRelationsResponse.ts b/src/util/schemas/responses/UserRelationsResponse.ts

index 1ec15eca..e784cafb 100644 --- a/src/util/schemas/responses/UserRelationsResponse.ts +++ b/src/util/schemas/responses/UserRelationsResponse.ts
@@ -1,9 +1,7 @@ -export interface UserRelationsResponse { - object: { - id?: string; - username?: string; - avatar?: string; - discriminator?: string; - public_flags?: number; - }; -} +import { User } from "@spacebar/util"; + +export type UserRelationsResponse = (Pick<User, "id"> & + Pick<User, "username"> & + Pick<User, "discriminator"> & + Pick<User, "avatar"> & + Pick<User, "public_flags">)[];