From ecea5540fa39a117055caa96c8b3d78b998da9e6 Mon Sep 17 00:00:00 2001 From: Rory& Date: Tue, 17 Mar 2026 02:36:54 +0100 Subject: [PATCH] Schemas for stickers --- assets/openapi.json | Bin 949503 -> 952872 bytes assets/schemas.json | Bin 415904 -> 418044 bytes src/api/routes/guilds/#guild_id/stickers.ts | 2 +- src/api/routes/sticker-packs/index.ts | 2 +- src/schemas/api/guilds/Sticker.ts | 20 ++++++++++++++++ src/schemas/responses/TypedResponses.ts | 25 -------------------- src/util/entities/Attachment.ts | 1 - 7 files changed, 22 insertions(+), 28 deletions(-) diff --git a/assets/openapi.json b/assets/openapi.json index 0e1b4fa4f0ca2ec32f9532109b59b02a62c706ee..c1df064399b85458cc9d70c30094e9a569f57a35 100644 GIT binary patch delta 683 zcmc(c-%C?r7{__f_P*!GcBUmPSUJi=q8D=#1!_nqg5@sC{U{1GIx=&tVrR{Hk#sTG zVBG|=SN5 z?BRPf$g%qs6hNR>&{b%iAQ)EL@Mx|LhoMzL3RQm(!l}4fV~cq-i{Shr+zxNcTsy>` zV=pAfNH?_ZGmEfPMBU(fB`8qiNGFXMQm=<}fHu!NV6D&81H0bY_i?hwG4%_Yx3k;^ z`ie8|Ix^r4Oa^A=u47yH|2R_|%)Lnz8OkYQV=Z^c;pt3Zo3Ow(FRnn(GeMAV>Y?#O zM31^6(Mg@%S`gkKOGuxNCgQhUA$|D{~P`O`QH=J|o|BgB^^j(^fE= zOt9A7W&&bnAZFRV z^)IVHI!ztk#5CPLnT>6`Rvuft`1UoE*z`)LuVZ9q-#($0O@_Dq7Lav|orCl6_O^2z zyF>UK13Zzvu`!mTZ2ALl4(I6s#jNb@JSv>qc~rOp6SxrSwkw|Ie#t!Dpqj^NdO$o6 b`}TJexTi3->veGfF*gwNY}f1J{q-LJ%UrN7 diff --git a/assets/schemas.json b/assets/schemas.json index 1458afdb2e11b479f886abddec6d417c04d80557..a3fe6de9b6423e31b974aab8bda76ef5f132cb31 100644 GIT binary patch delta 315 zcmZ{cF-QVo97p+|-=~F@Hw31HR$yQUk%SvECTJBhq;+K%N$rK#d8+@TXJxdJVFg^ zRk|hFEm4fgrwX|hnK~wg;J;#Z=q=Kq#%NyJRr>PEj74Ey)f+TG8Q_q5gI(YLo1{1b m%TA}<(fRhI{CMGUH`FqpK<9|ZVc$?(uIKpWo?PhheD)V|bahJr delta 309 zcmex!P;$XW$ql#anyWguS9LPlv9P-4=4WM2Uy#cfIX%{wk$-wL8>7$mt-XwVOw$GK zvan1Sn8@fn{eC11>-5|tR;TF`!kFBq{|{s-o*od);yL|67OVF34epF;(*-s%yKjFG z!m^8L`hyfkmdOqVA=?+Ev5GKl7o5)6B*Y$El9`;HS_H94E{#PHV$+0`j5@5`P|1MA za; - export type APIPublicUser = PublicUser; - export type APIPrivateUser = PrivateUser; - export type APIGuildArray = APIGuild[]; - export type APIDMChannelArray = DmChannelDTO[]; - export type APIBackupCodeArray = BackupCode[]; export interface UserUpdateResponse extends APIPrivateUser { @@ -41,29 +36,16 @@ export interface UserUpdateResponse extends APIPrivateUser { } export type ApplicationDetectableResponse = unknown[]; - export type ApplicationEntitlementsResponse = unknown[]; - export type ApplicationSkusResponse = unknown[]; - export type APIApplicationArray = Application[]; - export type APIBansArray = GuildBansResponse[]; - export type APIInviteArray = Invite[]; - export type APIMessageArray = Message[]; - export type APIWebhookArray = Webhook[]; - export type APIDiscoveryCategoryArray = Categories[]; - export type APIGeneralConfiguration = GeneralConfiguration; - export type APIChannelArray = Channel[]; - -export type APIEmojiArray = Emoji[]; - export type APIMemberArray = Member[]; export type APIPublicMember = PublicMember; @@ -72,17 +54,10 @@ export interface APIGuildWithJoinedAt extends GuildCreateResponse { } export type APIRoleArray = Role[]; - -export type APIStickerArray = Sticker[]; - export type APITemplateArray = Template[]; - export type APIGuildVoiceRegion = GuildVoiceRegion[]; - export type APILimitsConfiguration = LimitsConfiguration; -export type APIStickerPackArray = StickerPack[]; - export type APIConnectionsConfiguration = Record< string, { diff --git a/src/util/entities/Attachment.ts b/src/util/entities/Attachment.ts index 9dc9c3ac0..4dced10a7 100644 --- a/src/util/entities/Attachment.ts +++ b/src/util/entities/Attachment.ts @@ -17,7 +17,6 @@ */ import { BeforeRemove, Column, Entity, JoinColumn, ManyToOne, RelationId } from "typeorm"; -import { URL } from "url"; import { deleteFile } from "../util"; import { BaseClass } from "./BaseClass"; import { getUrlSignature, NewUrlUserSignatureData, NewUrlSignatureData } from "../Signing";