Compare commits
2 Commits
967d5e981e
...
ffb3153a47
Author | SHA1 | Date | |
---|---|---|---|
ffb3153a47 | |||
64630e0ab7 |
@@ -50,7 +50,7 @@ class Analytics(commands.Cog):
|
|||||||
"user": message.author.id,
|
"user": message.author.id,
|
||||||
"channel": message.channel.id,
|
"channel": message.channel.id,
|
||||||
"content": message.content,
|
"content": message.content,
|
||||||
"stickers": message.stickers,
|
"stickers": stickers,
|
||||||
"attachments": attachments,
|
"attachments": attachments,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
54
validation/analytics.json
Normal file
54
validation/analytics.json
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
{
|
||||||
|
"$jsonSchema": {
|
||||||
|
"required": [
|
||||||
|
"user",
|
||||||
|
"channel",
|
||||||
|
"content",
|
||||||
|
"stickers",
|
||||||
|
"attachments"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"user": {
|
||||||
|
"bsonType": "long",
|
||||||
|
"description": "Discord ID of user"
|
||||||
|
},
|
||||||
|
"channel": {
|
||||||
|
"bsonType": "int",
|
||||||
|
"description": "Discord ID of a channel"
|
||||||
|
},
|
||||||
|
"content": {
|
||||||
|
"bsonType": ["null", "string"],
|
||||||
|
"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"
|
||||||
|
},
|
||||||
|
"user": {
|
||||||
|
"bsonType": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"attachments": {
|
||||||
|
"bsonType": "array"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user