From 4ecee6b291275263ed0c8379a83a3d9a336fd205 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Fri, 14 Apr 2023 22:26:11 +1000 Subject: [PATCH] fix typos --- src/api/routes/guilds/#guild_id/index.ts | 2 +- src/api/routes/guilds/templates/index.ts | 2 +- src/util/schemas/responses/TypedResponses.ts | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/api/routes/guilds/#guild_id/index.ts b/src/api/routes/guilds/#guild_id/index.ts index e87a5e45..afe60614 100644 --- a/src/api/routes/guilds/#guild_id/index.ts +++ b/src/api/routes/guilds/#guild_id/index.ts @@ -39,7 +39,7 @@ router.get( route({ responses: { "200": { - body: "GuildWithJoinedAt", + body: "APIGuildWithJoinedAt", }, 401: { body: "APIErrorResponse", diff --git a/src/api/routes/guilds/templates/index.ts b/src/api/routes/guilds/templates/index.ts index 32129cca..8f718a21 100644 --- a/src/api/routes/guilds/templates/index.ts +++ b/src/api/routes/guilds/templates/index.ts @@ -36,7 +36,7 @@ router.get( route({ responses: { 200: { - body: "GuildTemplate", + body: "Template", }, 403: { body: "APIErrorResponse", diff --git a/src/util/schemas/responses/TypedResponses.ts b/src/util/schemas/responses/TypedResponses.ts index cb238401..099efba3 100644 --- a/src/util/schemas/responses/TypedResponses.ts +++ b/src/util/schemas/responses/TypedResponses.ts @@ -69,7 +69,9 @@ export type APIEmojiArray = Emoji[]; export type APIMemberArray = Member[]; -export type GuildWithJoinedAt = Guild & { joined_at: string }; +export interface APIGuildWithJoinedAt extends Guild { + joined_at: string; +} export type APIRoleArray = Role[];