summary refs log tree commit diff
path: root/src/schemas/api/guilds/Sticker.ts
blob: 212baadc1b605d15cf9db0cec181d3f94a188451 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { Snowflake } from "../../Identifiers";
import { PartialUser } from "../users";

export type StickersResponse = StickerResponse[];
export interface StickerResponse {
    id: Snowflake;
    pack_id?: Snowflake;
    name: string;
    description: string | null;
    tags: string;
    type: StickerType;
    format_type: StickerFormatType;
    available?: boolean;
    guild_id?: Snowflake;
    // Only filled for Get Guild Sticker(/s)
    user?: PartialUser;
    // Only filled in for sticker packs
    sort_value?: number;
}

export enum StickerType {
    STANDARD = 1,
    GUILD = 2,
}

export enum StickerFormatType {
    PNG = 1,
    APNG = 2,
    LOTTIE = 3,
    GIF = 4,
}