added username support to /v2/send endpoint

This commit is contained in:
Bernhard B
2024-05-22 19:21:22 +02:00
parent 07a3beaa97
commit bbd088fc0b
7 changed files with 147 additions and 127 deletions

View File

@@ -2217,10 +2217,7 @@ var doc = `{
"type": "integer"
},
"mentions": {
"type": "array",
"items": {
"$ref": "#/definitions/client.MessageMention"
}
"type": "string"
},
"message": {
"type": "string"
@@ -2232,10 +2229,7 @@ var doc = `{
"type": "string"
},
"quote_mentions": {
"type": "array",
"items": {
"$ref": "#/definitions/client.MessageMention"
}
"type": "string"
},
"quote_message": {
"type": "string"
@@ -2490,20 +2484,6 @@ var doc = `{
}
}
},
"client.MessageMention": {
"type": "object",
"properties": {
"author": {
"type": "string"
},
"length": {
"type": "integer"
},
"start": {
"type": "integer"
}
}
},
"client.SetUsernameResponse": {
"type": "object",
"properties": {

View File

@@ -2201,10 +2201,7 @@
"type": "integer"
},
"mentions": {
"type": "array",
"items": {
"$ref": "#/definitions/client.MessageMention"
}
"type": "string"
},
"message": {
"type": "string"
@@ -2216,10 +2213,7 @@
"type": "string"
},
"quote_mentions": {
"type": "array",
"items": {
"$ref": "#/definitions/client.MessageMention"
}
"type": "string"
},
"quote_message": {
"type": "string"
@@ -2474,20 +2468,6 @@
}
}
},
"client.MessageMention": {
"type": "object",
"properties": {
"author": {
"type": "string"
},
"length": {
"type": "integer"
},
"start": {
"type": "integer"
}
}
},
"client.SetUsernameResponse": {
"type": "object",
"properties": {

View File

@@ -171,9 +171,7 @@ definitions:
edit_timestamp:
type: integer
mentions:
items:
$ref: '#/definitions/client.MessageMention'
type: array
type: string
message:
type: string
number:
@@ -181,9 +179,7 @@ definitions:
quote_author:
type: string
quote_mentions:
items:
$ref: '#/definitions/client.MessageMention'
type: array
type: string
quote_message:
type: string
quote_timestamp:
@@ -349,15 +345,6 @@ definitions:
url:
type: string
type: object
client.MessageMention:
properties:
author:
type: string
length:
type: integer
start:
type: integer
type: object
client.SetUsernameResponse:
properties:
username: