summary refs log tree commit diff
path: root/src/api/routes/guilds
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-04-16 01:51:52 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-04-16 01:51:52 +1000
commitb438f2b071dbaa82371016168ab843f24be5063e (patch)
treeeea50564f94b6992089ce097455404d89cd0ba56 /src/api/routes/guilds
parentgenerated files (diff)
downloadserver-ts-b438f2b071dbaa82371016168ab843f24be5063e.tar.xz
Rewrite getRouteDescriptions, fix message route not appearing in openapi spec
Diffstat (limited to 'src/api/routes/guilds')
-rw-r--r--src/api/routes/guilds/#guild_id/prune.ts2
-rw-r--r--src/api/routes/guilds/#guild_id/stickers.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/api/routes/guilds/#guild_id/prune.ts b/src/api/routes/guilds/#guild_id/prune.ts

index 92ea91fc..2c77340d 100644 --- a/src/api/routes/guilds/#guild_id/prune.ts +++ b/src/api/routes/guilds/#guild_id/prune.ts
@@ -23,7 +23,7 @@ import { IsNull, LessThan } from "typeorm"; const router = Router(); //Returns all inactive members, respecting role hierarchy -export const inactiveMembers = async ( +const inactiveMembers = async ( guild_id: string, user_id: string, days: number, diff --git a/src/api/routes/guilds/#guild_id/stickers.ts b/src/api/routes/guilds/#guild_id/stickers.ts
index 2da9a21e..88f9a40e 100644 --- a/src/api/routes/guilds/#guild_id/stickers.ts +++ b/src/api/routes/guilds/#guild_id/stickers.ts
@@ -105,7 +105,7 @@ router.post( }, ); -export function getStickerFormat(mime_type: string) { +function getStickerFormat(mime_type: string) { switch (mime_type) { case "image/apng": return StickerFormatType.APNG;