summary refs log tree commit diff
path: root/util/src
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-15 00:02:23 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-15 00:02:23 +0200
commitd2df6f99bef7db6f5c20b822b274c6bcf664c7df (patch)
treec1b21ce049db5abf98d6020c5ad004c672f698ab /util/src
parent:art: restructure (diff)
downloadserver-d2df6f99bef7db6f5c20b822b274c6bcf664c7df.tar.xz
:sparkles: sticker upload
Diffstat (limited to 'util/src')
-rw-r--r--util/src/entities/Sticker.ts13
1 files changed, 9 insertions, 4 deletions
diff --git a/util/src/entities/Sticker.ts b/util/src/entities/Sticker.ts
index 94761f60..37bc6fbe 100644
--- a/util/src/entities/Sticker.ts
+++ b/util/src/entities/Sticker.ts
@@ -9,6 +9,7 @@ export enum StickerType {
 }
 
 export enum StickerFormatType {
+	GIF = 0, // gif is a custom format type and not in discord spec
 	PNG = 1,
 	APNG = 2,
 	LOTTIE = 3,
@@ -22,16 +23,20 @@ export class Sticker extends BaseClass {
 	@Column({ nullable: true })
 	description?: string;
 
-	@Column()
-	tags: string;
+	@Column({ nullable: true })
+	available?: boolean;
 
-	@Column()
+	@Column({ nullable: true })
+	tags?: string;
+
+	@Column({ nullable: true })
 	@RelationId((sticker: Sticker) => sticker.pack)
-	pack_id: string;
+	pack_id?: string;
 
 	@JoinColumn({ name: "pack_id" })
 	@ManyToOne(() => require("./StickerPack").StickerPack, {
 		onDelete: "CASCADE",
+		nullable: true,
 	})
 	pack: import("./StickerPack").StickerPack;