summary refs log tree commit diff
diff options
context:
space:
mode:
authorPuyodead1 <puyodead@proton.me>2023-12-06 10:34:53 -0500
committerPuyodead1 <puyodead@proton.me>2023-12-06 10:34:53 -0500
commitc4701a3299c5b148bc931e35605537afbc0d814d (patch)
treebf6dfc7ecb13440750d5600f756a7a804fdaa412
parenthandle possibly null activities in session sort (diff)
downloadserver-c4701a3299c5b148bc931e35605537afbc0d814d.tar.xz
add components to message create schema
-rw-r--r--assets/schemas.json8
-rw-r--r--src/util/schemas/MessageCreateSchema.ts2
2 files changed, 10 insertions, 0 deletions
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[]; }