Skip to content

Commit ecea554

Browse files
Schemas for stickers
1 parent 4850d73 commit ecea554

7 files changed

Lines changed: 381 additions & 275 deletions

File tree

assets/openapi.json

Lines changed: 190 additions & 118 deletions
Original file line numberDiff line numberDiff line change
@@ -977,6 +977,62 @@
977977
"view_nsfw_guilds"
978978
]
979979
},
980+
"StickersResponse": {
981+
"type": "array",
982+
"items": {
983+
"$ref": "#/components/schemas/StickerResponse"
984+
}
985+
},
986+
"StickerResponse": {
987+
"type": "object",
988+
"properties": {
989+
"id": {
990+
"description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```",
991+
"type": "string"
992+
},
993+
"pack_id": {
994+
"description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```",
995+
"type": "string"
996+
},
997+
"name": {
998+
"type": "string"
999+
},
1000+
"description": {
1001+
"type": "string",
1002+
"nullable": true
1003+
},
1004+
"tags": {
1005+
"type": "string"
1006+
},
1007+
"type": {
1008+
"$ref": "#/components/schemas/StickerType"
1009+
},
1010+
"format_type": {
1011+
"$ref": "#/components/schemas/StickerFormatType"
1012+
},
1013+
"available": {
1014+
"type": "boolean"
1015+
},
1016+
"guild_id": {
1017+
"description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```",
1018+
"type": "string"
1019+
},
1020+
"user": {
1021+
"$ref": "#/components/schemas/PartialUser"
1022+
},
1023+
"sort_value": {
1024+
"type": "integer"
1025+
}
1026+
},
1027+
"required": [
1028+
"description",
1029+
"format_type",
1030+
"id",
1031+
"name",
1032+
"tags",
1033+
"type"
1034+
]
1035+
},
9801036
"IdentifySchema": {
9811037
"type": "object",
9821038
"properties": {
@@ -3161,12 +3217,6 @@
31613217
"$ref": "#/components/schemas/Channel"
31623218
}
31633219
},
3164-
"APIEmojiArray": {
3165-
"type": "array",
3166-
"items": {
3167-
"$ref": "#/components/schemas/Emoji"
3168-
}
3169-
},
31703220
"APIMemberArray": {
31713221
"type": "array",
31723222
"items": {
@@ -3185,12 +3235,6 @@
31853235
"flags": {
31863236
"type": "integer"
31873237
},
3188-
"mute": {
3189-
"type": "boolean"
3190-
},
3191-
"deaf": {
3192-
"type": "boolean"
3193-
},
31943238
"nick": {
31953239
"type": "string"
31963240
},
@@ -3201,6 +3245,12 @@
32013245
"pending": {
32023246
"type": "boolean"
32033247
},
3248+
"deaf": {
3249+
"type": "boolean"
3250+
},
3251+
"mute": {
3252+
"type": "boolean"
3253+
},
32043254
"premium_since": {
32053255
"type": "integer"
32063256
},
@@ -3425,12 +3475,6 @@
34253475
"$ref": "#/components/schemas/Role"
34263476
}
34273477
},
3428-
"APIStickerArray": {
3429-
"type": "array",
3430-
"items": {
3431-
"$ref": "#/components/schemas/Sticker"
3432-
}
3433-
},
34343478
"APITemplateArray": {
34353479
"type": "array",
34363480
"items": {
@@ -3474,12 +3518,6 @@
34743518
"user"
34753519
]
34763520
},
3477-
"APIStickerPackArray": {
3478-
"type": "array",
3479-
"items": {
3480-
"$ref": "#/components/schemas/StickerPack"
3481-
}
3482-
},
34833521
"APIConnectionsConfiguration": {
34843522
"type": "object"
34853523
},
@@ -11740,12 +11778,6 @@
1174011778
"flags": {
1174111779
"type": "integer"
1174211780
},
11743-
"mute": {
11744-
"type": "boolean"
11745-
},
11746-
"deaf": {
11747-
"type": "boolean"
11748-
},
1174911781
"nick": {
1175011782
"type": "string"
1175111783
},
@@ -11756,6 +11788,12 @@
1175611788
"pending": {
1175711789
"type": "boolean"
1175811790
},
11791+
"deaf": {
11792+
"type": "boolean"
11793+
},
11794+
"mute": {
11795+
"type": "boolean"
11796+
},
1175911797
"premium_since": {
1176011798
"type": "integer"
1176111799
},
@@ -11993,6 +12031,92 @@
1199312031
}
1199412032
}
1199512033
},
12034+
"PartialUser": {
12035+
"type": "object",
12036+
"properties": {
12037+
"id": {
12038+
"description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```",
12039+
"type": "string"
12040+
},
12041+
"username": {
12042+
"type": "string"
12043+
},
12044+
"discriminator": {
12045+
"type": "string"
12046+
},
12047+
"global_name": {
12048+
"type": "string",
12049+
"nullable": true
12050+
},
12051+
"avatar": {
12052+
"type": "string",
12053+
"nullable": true
12054+
},
12055+
"avatar_decoration_data": {
12056+
"anyOf": [
12057+
{
12058+
"$ref": "#/components/schemas/AvatarDecorationData"
12059+
},
12060+
{
12061+
"type": "null"
12062+
}
12063+
]
12064+
},
12065+
"collectibles": {
12066+
"anyOf": [
12067+
{
12068+
"$ref": "#/components/schemas/Collectibles"
12069+
},
12070+
{
12071+
"type": "null"
12072+
}
12073+
]
12074+
},
12075+
"display_name_styles": {
12076+
"anyOf": [
12077+
{
12078+
"$ref": "#/components/schemas/DisplayNameStyle"
12079+
},
12080+
{
12081+
"type": "null"
12082+
}
12083+
]
12084+
},
12085+
"primary_guild": {
12086+
"anyOf": [
12087+
{
12088+
"$ref": "#/components/schemas/PrimaryGuild"
12089+
},
12090+
{
12091+
"type": "null"
12092+
}
12093+
]
12094+
},
12095+
"bot": {
12096+
"type": "boolean"
12097+
},
12098+
"system": {
12099+
"type": "boolean"
12100+
},
12101+
"banner": {
12102+
"type": "string",
12103+
"nullable": true
12104+
},
12105+
"accent_color": {
12106+
"type": "integer",
12107+
"nullable": true
12108+
},
12109+
"public_flags": {
12110+
"type": "integer"
12111+
}
12112+
},
12113+
"required": [
12114+
"avatar",
12115+
"discriminator",
12116+
"id",
12117+
"username"
12118+
]
12119+
},
1199612120
"Classification": {
1199712121
"type": "object",
1199812122
"properties": {
@@ -12880,92 +13004,6 @@
1288013004
"type"
1288113005
]
1288213006
},
12883-
"PartialUser": {
12884-
"type": "object",
12885-
"properties": {
12886-
"id": {
12887-
"description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```",
12888-
"type": "string"
12889-
},
12890-
"username": {
12891-
"type": "string"
12892-
},
12893-
"discriminator": {
12894-
"type": "string"
12895-
},
12896-
"global_name": {
12897-
"type": "string",
12898-
"nullable": true
12899-
},
12900-
"avatar": {
12901-
"type": "string",
12902-
"nullable": true
12903-
},
12904-
"avatar_decoration_data": {
12905-
"anyOf": [
12906-
{
12907-
"$ref": "#/components/schemas/AvatarDecorationData"
12908-
},
12909-
{
12910-
"type": "null"
12911-
}
12912-
]
12913-
},
12914-
"collectibles": {
12915-
"anyOf": [
12916-
{
12917-
"$ref": "#/components/schemas/Collectibles"
12918-
},
12919-
{
12920-
"type": "null"
12921-
}
12922-
]
12923-
},
12924-
"display_name_styles": {
12925-
"anyOf": [
12926-
{
12927-
"$ref": "#/components/schemas/DisplayNameStyle"
12928-
},
12929-
{
12930-
"type": "null"
12931-
}
12932-
]
12933-
},
12934-
"primary_guild": {
12935-
"anyOf": [
12936-
{
12937-
"$ref": "#/components/schemas/PrimaryGuild"
12938-
},
12939-
{
12940-
"type": "null"
12941-
}
12942-
]
12943-
},
12944-
"bot": {
12945-
"type": "boolean"
12946-
},
12947-
"system": {
12948-
"type": "boolean"
12949-
},
12950-
"banner": {
12951-
"type": "string",
12952-
"nullable": true
12953-
},
12954-
"accent_color": {
12955-
"type": "integer",
12956-
"nullable": true
12957-
},
12958-
"public_flags": {
12959-
"type": "integer"
12960-
}
12961-
},
12962-
"required": [
12963-
"avatar",
12964-
"discriminator",
12965-
"id",
12966-
"username"
12967-
]
12968-
},
1296913007
"HubGuild": {
1297013008
"type": "object",
1297113009
"properties": {
@@ -16435,6 +16473,40 @@
1643516473
]
1643616474
}
1643716475
},
16476+
"/users/@me/billing/location-info/": {
16477+
"get": {
16478+
"security": [
16479+
{
16480+
"bearer": []
16481+
}
16482+
],
16483+
"responses": {
16484+
"default": {
16485+
"description": "No description available"
16486+
}
16487+
},
16488+
"tags": [
16489+
"users"
16490+
]
16491+
}
16492+
},
16493+
"/users/@me/billing/country-code/": {
16494+
"get": {
16495+
"security": [
16496+
{
16497+
"bearer": []
16498+
}
16499+
],
16500+
"responses": {
16501+
"default": {
16502+
"description": "No description available"
16503+
}
16504+
},
16505+
"tags": [
16506+
"users"
16507+
]
16508+
}
16509+
},
1643816510
"/users/@me/applications/{application_id}/entitlements/": {
1643916511
"get": {
1644016512
"security": [
@@ -17109,7 +17181,7 @@
1710917181
"content": {
1711017182
"application/json": {
1711117183
"schema": {
17112-
"$ref": "#/components/schemas/APIStickerPackArray"
17184+
"$ref": "#/components/schemas/StickersResponse"
1711317185
}
1711417186
}
1711517187
}
@@ -19742,7 +19814,7 @@
1974219814
"content": {
1974319815
"application/json": {
1974419816
"schema": {
19745-
"$ref": "#/components/schemas/APIStickerArray"
19817+
"$ref": "#/components/schemas/StickersResponse"
1974619818
}
1974719819
}
1974819820
}

0 commit comments

Comments
 (0)