2023-05-08 19:27:33 +02:00
|
|
|
{
|
|
|
|
"$jsonSchema": {
|
|
|
|
"required": [
|
2025-02-09 23:00:18 +01:00
|
|
|
"user_id",
|
2023-05-08 19:27:33 +02:00
|
|
|
"channel",
|
|
|
|
"content",
|
|
|
|
"stickers",
|
|
|
|
"attachments"
|
|
|
|
],
|
|
|
|
"properties": {
|
2025-02-09 23:00:18 +01:00
|
|
|
"user_id": {
|
2023-05-08 19:27:33 +02:00
|
|
|
"bsonType": "long",
|
|
|
|
"description": "Discord ID of user"
|
|
|
|
},
|
|
|
|
"channel": {
|
|
|
|
"bsonType": "int",
|
|
|
|
"description": "Discord ID of a channel"
|
|
|
|
},
|
|
|
|
"content": {
|
2025-02-09 23:00:18 +01:00
|
|
|
"bsonType": [
|
|
|
|
"null",
|
|
|
|
"string"
|
|
|
|
],
|
2023-05-08 19:27:33 +02:00
|
|
|
"description": "Text of the message"
|
|
|
|
},
|
|
|
|
"stickers": {
|
|
|
|
"bsonType": "array",
|
|
|
|
"items": {
|
|
|
|
"bsonType": "object",
|
|
|
|
"required": [
|
|
|
|
"id",
|
|
|
|
"name",
|
|
|
|
"format",
|
|
|
|
"url"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"bsonType": "int"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"bsonType": "string"
|
|
|
|
},
|
|
|
|
"format": {
|
|
|
|
"bsonType": "array"
|
|
|
|
},
|
2025-02-09 23:00:18 +01:00
|
|
|
"user_id": {
|
2023-05-08 19:27:33 +02:00
|
|
|
"bsonType": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"attachments": {
|
|
|
|
"bsonType": "array"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|