summary refs log tree commit diff
path: root/src/util/schemas
diff options
context:
space:
mode:
authorPuyodead1 <puyodead@protonmail.com>2023-05-06 01:11:37 -0400
committerPuyodead1 <puyodead@protonmail.com>2023-12-23 16:35:01 -0500
commit0939236cc0aed4449621040d00a917c05efb3cef (patch)
tree6ec34e441390fed58692f78e41a0f28c7bb65055 /src/util/schemas
parentrename handle to tag (diff)
downloadserver-ts-0939236cc0aed4449621040d00a917c05efb3cef.tar.xz
remove display_name
Diffstat (limited to 'src/util/schemas')
-rw-r--r--src/util/schemas/responses/GuildBansResponse.ts3
-rw-r--r--src/util/schemas/responses/GuildWidgetJsonResponse.ts3
-rw-r--r--src/util/schemas/responses/UserRelationsResponse.ts1
3 files changed, 2 insertions, 5 deletions
diff --git a/src/util/schemas/responses/GuildBansResponse.ts b/src/util/schemas/responses/GuildBansResponse.ts

index aa53105d..0505327a 100644 --- a/src/util/schemas/responses/GuildBansResponse.ts +++ b/src/util/schemas/responses/GuildBansResponse.ts
@@ -21,8 +21,7 @@ export interface GuildBansResponse { user: { username: string; discriminator: string; - global_name: string; - display_name: string | null; + global_name?: string; id: string; avatar: string | null; public_flags: number; diff --git a/src/util/schemas/responses/GuildWidgetJsonResponse.ts b/src/util/schemas/responses/GuildWidgetJsonResponse.ts
index 60e8e7cc..320f14dd 100644 --- a/src/util/schemas/responses/GuildWidgetJsonResponse.ts +++ b/src/util/schemas/responses/GuildWidgetJsonResponse.ts
@@ -30,8 +30,7 @@ export interface GuildWidgetJsonResponse { members: { id: string; username: string; - global_name: string; - display_name: string | null; + global_name: string | null; discriminator: string; avatar: string | null; status: ClientStatus; diff --git a/src/util/schemas/responses/UserRelationsResponse.ts b/src/util/schemas/responses/UserRelationsResponse.ts
index 59db277f..586c8fac 100644 --- a/src/util/schemas/responses/UserRelationsResponse.ts +++ b/src/util/schemas/responses/UserRelationsResponse.ts
@@ -20,7 +20,6 @@ import { User } from "@spacebar/util"; export type UserRelationsResponse = (Pick<User, "id"> & Pick<User, "username"> & Pick<User, "global_name"> & - Pick<User, "display_name"> & Pick<User, "discriminator"> & Pick<User, "avatar"> & Pick<User, "public_flags">)[];