diff options
Diffstat (limited to 'src/util/schemas/responses/UserRelationsResponse.ts')
-rw-r--r-- | src/util/schemas/responses/UserRelationsResponse.ts | 16 |
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">)[]; |