summary refs log tree commit diff
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-04-14 22:26:11 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-04-14 22:26:11 +1000
commit4ecee6b291275263ed0c8379a83a3d9a336fd205 (patch)
treee4d3fd5d14cedad91e0c03be2b40db8d1a77d3db
parentFix bug where different HTTP method handlers would overwrite eachother in spe... (diff)
downloadserver-4ecee6b291275263ed0c8379a83a3d9a336fd205.tar.xz
fix typos
-rw-r--r--src/api/routes/guilds/#guild_id/index.ts2
-rw-r--r--src/api/routes/guilds/templates/index.ts2
-rw-r--r--src/util/schemas/responses/TypedResponses.ts4
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[];