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[];