Newer
Older
percord / src / schemas / api / guilds / Emoji.ts
@Rory& Rory& on 17 Mar 440 bytes Schemas for emojis
import { Snowflake } from "../../Identifiers";
import { PartialUser } from "../users";

export type EmojisResponse = EmojiResponse[];

// why is almost everything optional?
export interface EmojiResponse {
    id: Snowflake | null;
    // null only when deleted
    name: string | null;
    roles?: Snowflake[];
    user?: PartialUser;
    require_colons?: boolean;
    managed?: boolean;
    animated?: boolean;
    available?: boolean;
}