From 0939236cc0aed4449621040d00a917c05efb3cef Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Sat, 6 May 2023 01:11:37 -0400 Subject: remove display_name --- src/util/schemas/responses/GuildBansResponse.ts | 3 +-- src/util/schemas/responses/GuildWidgetJsonResponse.ts | 3 +-- src/util/schemas/responses/UserRelationsResponse.ts | 1 - 3 files changed, 2 insertions(+), 5 deletions(-) (limited to 'src/util/schemas') 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 & Pick & Pick & - Pick & Pick & Pick & Pick)[]; -- cgit 1.5.1