Merge pull request #1376 from CyberL1/fix/gif-stickers
This commit is contained in:
commit
a8d9735974
@ -4,8 +4,8 @@ export enum StickerType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export enum StickerFormatType {
|
export enum StickerFormatType {
|
||||||
GIF = 0, // gif is a custom format type and not in discord spec
|
|
||||||
PNG = 1,
|
PNG = 1,
|
||||||
APNG = 2,
|
APNG = 2,
|
||||||
LOTTIE = 3,
|
LOTTIE = 3,
|
||||||
|
GIF = 4,
|
||||||
}
|
}
|
||||||
|
|||||||
@ -0,0 +1,11 @@
|
|||||||
|
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||||
|
|
||||||
|
export class FixGifStickersFormatType1762611552514 implements MigrationInterface {
|
||||||
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||||
|
await queryRunner.query(`UPDATE "stickers" SET "format_type" = 4 WHERE "format_type" = 0;`);
|
||||||
|
}
|
||||||
|
|
||||||
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||||
|
await queryRunner.query(`UPDATE "stickers" SET "format_type" = 0 WHERE "format_type" = 4;`);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user