Fix: use intergers for discord ids

This commit is contained in:
Aron Malcher 2024-02-28 21:58:57 +01:00
parent ffaf8d989e
commit 95fee833a1
Signed by: aronmal
GPG key ID: 816B7707426FC612
9 changed files with 151 additions and 181 deletions

View file

@ -361,9 +361,8 @@
"required": ["guildId", "timezone", "features", "matches", "checksum"],
"properties": {
"guildId": {
"type": "string",
"format": "varchar(20)",
"example": "1234567890123456789"
"type": "number",
"example": 1234567890123456789
},
"timezone": {
"type": "string",
@ -389,9 +388,8 @@
"type": "boolean"
},
"channelId": {
"type": "string",
"format": "varchar(20)",
"example": "1234567890123456789",
"type": "number",
"example": 1234567890123456789,
"nullable": true
},
"targetMinute": {
@ -418,15 +416,13 @@
"type": "boolean"
},
"isAvailableRoleId": {
"type": "string",
"format": "varchar(20)",
"example": "1234567890123456789",
"type": "number",
"example": 1234567890123456789,
"nullable": true
},
"wantsToBeNotifieRoledId": {
"type": "string",
"format": "varchar(20)",
"example": "1234567890123456789",
"type": "number",
"example": 1234567890123456789,
"nullable": true
}
}
@ -459,35 +455,31 @@
],
"properties": {
"channelId": {
"type": "string",
"format": "varcharq(20)",
"example": "1234567890123456789"
"type": "number",
"example": 1234567890123456789
},
"createrId": {
"type": "number",
"example": 1234567890123456789
},
"roleId": {
"type": "number",
"example": 1234567890123456789
},
"messageId": {
"type": "number",
"example": 1234567890123456789
},
"matchType": {
"type": "string",
"format": "varchar(50)",
"example": "Scrim"
},
"createrId": {
"type": "string",
"format": "varchar(20)",
"example": "1234567890123456789"
},
"roleId": {
"type": "string",
"format": "varchar(20)",
"example": "1234567890123456789"
},
"opponentName": {
"type": "string",
"format": "varchar(100)",
"example": "?"
},
"messageId": {
"type": "string",
"format": "varchar(20)",
"example": "1234567890123456789"
},
"utc_ts": {
"type": "string",
"example": "2020-01-01T00:00:00Z"
@ -499,54 +491,46 @@
"required": ["channelId", "messageIds"],
"properties": {
"channelId": {
"type": "string",
"format": "varchar(20)",
"example": "1234567890123456789"
"type": "number",
"example": 1234567890123456789
},
"messageIds": {
"type": "object",
"required": ["0", "1", "2", "3", "4", "5", "6"],
"properties": {
"0": {
"type": "string",
"format": "varchar(20)",
"example": "1234567890123456789",
"type": "number",
"example": 1234567890123456789,
"nullable": true
},
"1": {
"type": "string",
"format": "varchar(20)",
"example": "1234567890123456789",
"type": "number",
"example": 1234567890123456789,
"nullable": true
},
"2": {
"type": "string",
"format": "varchar(20)",
"example": "1234567890123456789",
"type": "number",
"example": 1234567890123456789,
"nullable": true
},
"3": {
"type": "string",
"format": "varchar(20)",
"example": "1234567890123456789",
"type": "number",
"example": 1234567890123456789,
"nullable": true
},
"4": {
"type": "string",
"format": "varchar(20)",
"example": "1234567890123456789",
"type": "number",
"example": 1234567890123456789,
"nullable": true
},
"5": {
"type": "string",
"format": "varchar(20)",
"example": "1234567890123456789",
"type": "number",
"example": 1234567890123456789,
"nullable": true
},
"6": {
"type": "string",
"format": "varchar(20)",
"example": "1234567890123456789",
"type": "number",
"example": 1234567890123456789,
"nullable": true
}
}