diff options
author | Puyodead1 <puyodead@proton.me> | 2023-12-06 10:34:53 -0500 |
---|---|---|
committer | Puyodead1 <puyodead@proton.me> | 2023-12-06 10:34:53 -0500 |
commit | c4701a3299c5b148bc931e35605537afbc0d814d (patch) | |
tree | bf6dfc7ecb13440750d5600f756a7a804fdaa412 | |
parent | handle possibly null activities in session sort (diff) | |
download | server-c4701a3299c5b148bc931e35605537afbc0d814d.tar.xz |
add components to message create schema
-rw-r--r-- | assets/schemas.json | 8 | ||||
-rw-r--r-- | src/util/schemas/MessageCreateSchema.ts | 2 |
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[]; } |