Schemas for emojis

This commit is contained in:
Rory&
2026-03-17 02:42:57 +01:00
parent ecea5540fa
commit ef9c51fed1
4 changed files with 18 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -28,7 +28,7 @@ router.get(
route({
responses: {
200: {
body: "APIEmojiArray",
body: "EmojisResponse",
},
403: {
body: "APIErrorResponse",

View File

@@ -0,0 +1,17 @@
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;
}