Fix invites creation
This commit is contained in:
parent
12fbba82ba
commit
8f68c4abcf
@ -713,7 +713,10 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"target_user_id": {
|
"target_user_id": {
|
||||||
"type": "string"
|
"type": [
|
||||||
|
"null",
|
||||||
|
"string"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"target_type": {
|
"target_type": {
|
||||||
"type": [
|
"type": [
|
||||||
|
@ -8,7 +8,7 @@ import { isTextChannel } from "./messages";
|
|||||||
const router: Router = Router();
|
const router: Router = Router();
|
||||||
|
|
||||||
export interface InviteCreateSchema {
|
export interface InviteCreateSchema {
|
||||||
target_user_id?: string;
|
target_user_id?: string | null;
|
||||||
target_type?: string | null;
|
target_type?: string | null;
|
||||||
validate?: string | null; // ? what is this
|
validate?: string | null; // ? what is this
|
||||||
max_age?: number;
|
max_age?: number;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user