Skip to content

Commit 16dcd33

Browse files
Split out attachment handling from message handler
1 parent 6592b6c commit 16dcd33

5 files changed

Lines changed: 278 additions & 268 deletions

File tree

assets/openapi.json

Lines changed: 87 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -12327,7 +12327,7 @@
1232712327
"mentions": {
1232812328
"type": "array",
1232912329
"items": {
12330-
"type": "string"
12330+
"$ref": "#/components/schemas/PartialUser"
1233112331
}
1233212332
},
1233312333
"mention_roles": {
@@ -12391,6 +12391,92 @@
1239112391
"message"
1239212392
]
1239312393
},
12394+
"PartialUser": {
12395+
"type": "object",
12396+
"properties": {
12397+
"id": {
12398+
"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```",
12399+
"type": "string"
12400+
},
12401+
"username": {
12402+
"type": "string"
12403+
},
12404+
"discriminator": {
12405+
"type": "string"
12406+
},
12407+
"global_name": {
12408+
"type": "string",
12409+
"nullable": true
12410+
},
12411+
"avatar": {
12412+
"type": "string",
12413+
"nullable": true
12414+
},
12415+
"avatar_decoration_data": {
12416+
"anyOf": [
12417+
{
12418+
"$ref": "#/components/schemas/AvatarDecorationData"
12419+
},
12420+
{
12421+
"type": "null"
12422+
}
12423+
]
12424+
},
12425+
"collectibles": {
12426+
"anyOf": [
12427+
{
12428+
"$ref": "#/components/schemas/Collectibles"
12429+
},
12430+
{
12431+
"type": "null"
12432+
}
12433+
]
12434+
},
12435+
"display_name_styles": {
12436+
"anyOf": [
12437+
{
12438+
"$ref": "#/components/schemas/DisplayNameStyle"
12439+
},
12440+
{
12441+
"type": "null"
12442+
}
12443+
]
12444+
},
12445+
"primary_guild": {
12446+
"anyOf": [
12447+
{
12448+
"$ref": "#/components/schemas/PrimaryGuild"
12449+
},
12450+
{
12451+
"type": "null"
12452+
}
12453+
]
12454+
},
12455+
"bot": {
12456+
"type": "boolean"
12457+
},
12458+
"system": {
12459+
"type": "boolean"
12460+
},
12461+
"banner": {
12462+
"type": "string",
12463+
"nullable": true
12464+
},
12465+
"accent_color": {
12466+
"type": "integer",
12467+
"nullable": true
12468+
},
12469+
"public_flags": {
12470+
"type": "integer"
12471+
}
12472+
},
12473+
"required": [
12474+
"avatar",
12475+
"discriminator",
12476+
"id",
12477+
"username"
12478+
]
12479+
},
1239412480
"MessageComponent": {
1239512481
"type": "object",
1239612482
"properties": {
@@ -12882,92 +12968,6 @@
1288212968
"type"
1288312969
]
1288412970
},
12885-
"PartialUser": {
12886-
"type": "object",
12887-
"properties": {
12888-
"id": {
12889-
"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```",
12890-
"type": "string"
12891-
},
12892-
"username": {
12893-
"type": "string"
12894-
},
12895-
"discriminator": {
12896-
"type": "string"
12897-
},
12898-
"global_name": {
12899-
"type": "string",
12900-
"nullable": true
12901-
},
12902-
"avatar": {
12903-
"type": "string",
12904-
"nullable": true
12905-
},
12906-
"avatar_decoration_data": {
12907-
"anyOf": [
12908-
{
12909-
"$ref": "#/components/schemas/AvatarDecorationData"
12910-
},
12911-
{
12912-
"type": "null"
12913-
}
12914-
]
12915-
},
12916-
"collectibles": {
12917-
"anyOf": [
12918-
{
12919-
"$ref": "#/components/schemas/Collectibles"
12920-
},
12921-
{
12922-
"type": "null"
12923-
}
12924-
]
12925-
},
12926-
"display_name_styles": {
12927-
"anyOf": [
12928-
{
12929-
"$ref": "#/components/schemas/DisplayNameStyle"
12930-
},
12931-
{
12932-
"type": "null"
12933-
}
12934-
]
12935-
},
12936-
"primary_guild": {
12937-
"anyOf": [
12938-
{
12939-
"$ref": "#/components/schemas/PrimaryGuild"
12940-
},
12941-
{
12942-
"type": "null"
12943-
}
12944-
]
12945-
},
12946-
"bot": {
12947-
"type": "boolean"
12948-
},
12949-
"system": {
12950-
"type": "boolean"
12951-
},
12952-
"banner": {
12953-
"type": "string",
12954-
"nullable": true
12955-
},
12956-
"accent_color": {
12957-
"type": "integer",
12958-
"nullable": true
12959-
},
12960-
"public_flags": {
12961-
"type": "integer"
12962-
}
12963-
},
12964-
"required": [
12965-
"avatar",
12966-
"discriminator",
12967-
"id",
12968-
"username"
12969-
]
12970-
},
1297112971
"HubGuild": {
1297212972
"type": "object",
1297312973
"properties": {

0 commit comments

Comments
 (0)