🐛 fix Guild vanity_url

This commit is contained in:
Flam3rboy 2021-05-09 17:41:34 +02:00
parent 35bd6b7ed7
commit ddde476319
3 changed files with 12286 additions and 67 deletions

12350
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -53,7 +53,7 @@ router.post("/", check(GuildCreateSchema), async (req: Request, res: Response) =
system_channel_flags: 0, system_channel_flags: 0,
system_channel_id: undefined, system_channel_id: undefined,
unavailable: false, unavailable: false,
vanity_url_code: undefined, vanity_url: undefined,
verification_level: 0, verification_level: 0,
welcome_screen: { welcome_screen: {
enabled: false, enabled: false,

View File

@ -10,7 +10,6 @@ import {
RoleModel, RoleModel,
UserModel, UserModel,
} from "@fosscord/server-util"; } from "@fosscord/server-util";
import { response } from "express";
import { HTTPError } from "lambert-server"; import { HTTPError } from "lambert-server";
import Config from "./Config"; import Config from "./Config";
import { emitEvent } from "./Event"; import { emitEvent } from "./Event";