mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-23 00:03:05 +00:00
✨ sticker upload
This commit is contained in:
1 parent
e5ed599b48
commit
d2df6f99be
3 files changed
+359
-11
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user