mirror of
https://github.com/spacebarchat/server.git
synced 2026-03-30 18:15:41 +00:00
Schemas for emojis
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -28,7 +28,7 @@ router.get(
|
||||
route({
|
||||
responses: {
|
||||
200: {
|
||||
body: "APIEmojiArray",
|
||||
body: "EmojisResponse",
|
||||
},
|
||||
403: {
|
||||
body: "APIErrorResponse",
|
||||
|
||||
17
src/schemas/api/guilds/Emoji.ts
Normal file
17
src/schemas/api/guilds/Emoji.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user