From c4701a3299c5b148bc931e35605537afbc0d814d Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Wed, 6 Dec 2023 10:34:53 -0500 Subject: add components to message create schema --- assets/schemas.json | 8 ++++++++ src/util/schemas/MessageCreateSchema.ts | 2 ++ 2 files changed, 10 insertions(+) diff --git a/assets/schemas.json b/assets/schemas.json index b513ee03..7d458c26 100644 --- a/assets/schemas.json +++ b/assets/schemas.json @@ -93564,6 +93564,10 @@ "items": { "type": "string" } + }, + "components": { + "type": "array", + "items": {} } }, "additionalProperties": false, @@ -97883,6 +97887,10 @@ "items": { "type": "string" } + }, + "components": { + "type": "array", + "items": {} } }, "additionalProperties": false, diff --git a/src/util/schemas/MessageCreateSchema.ts b/src/util/schemas/MessageCreateSchema.ts index 91c0817c..57abf62f 100644 --- a/src/util/schemas/MessageCreateSchema.ts +++ b/src/util/schemas/MessageCreateSchema.ts @@ -54,4 +54,6 @@ export interface MessageCreateSchema { **/ attachments?: Attachment[]; sticker_ids?: string[]; + // eslint-disable-next-line @typescript-eslint/no-explicit-any + components?: any[]; } -- cgit 1.4.1