diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-04-14 22:26:11 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-04-14 22:26:11 +1000 |
commit | 4ecee6b291275263ed0c8379a83a3d9a336fd205 (patch) | |
tree | e4d3fd5d14cedad91e0c03be2b40db8d1a77d3db /src | |
parent | Fix bug where different HTTP method handlers would overwrite eachother in spe... (diff) | |
download | server-4ecee6b291275263ed0c8379a83a3d9a336fd205.tar.xz |
fix typos
Diffstat (limited to 'src')
-rw-r--r-- | src/api/routes/guilds/#guild_id/index.ts | 2 | ||||
-rw-r--r-- | src/api/routes/guilds/templates/index.ts | 2 | ||||
-rw-r--r-- | 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[]; |