Merge branch 'feat/latestWebClient' into slowcord

This commit is contained in:
Madeline committed 2022-07-06 23:48:55 +10:00
commit 172c08eae7
7 files changed
+43 -14

No files matched your search

+1
View File
@@ -20,6 +20,7 @@ export interface GuildUpdateSchema extends Omit<GuildCreateSchema, "channels"> {
afk_timeout?: number;
afk_channel_id?: string;
preferred_locale?: string;
premium_progress_bar_enabled?: boolean;
}
router.get("/", route({}), async (req: Request, res: Response) => {
@@ -0,0 +1,14 @@
import { Router, Request, Response } from "express";
import { route } from "@fosscord/api";
const router = Router();
router.get("/",route({}), async (req: Request, res: Response) => {
// TODO: member verification
res.status(404).json({
message: "Unknown Guild Member Verification Form",
code: 10068
});
});
export default router;
@@ -10,7 +10,7 @@ export interface GuildUpdateWelcomeScreenSchema {
channel_id: string;
description: string;
emoji_id?: string;
emoji_name: string;
emoji_name?: string;
}[];
enabled?: boolean;
description?: string;
@@ -36,6 +36,8 @@ router.patch("/", route({ body: "GuildUpdateWelcomeScreenSchema", permission: "M
if (body.description) guild.welcome_screen.description = body.description;
if (body.enabled != null) guild.welcome_screen.enabled = body.enabled;
await guild.save();
res.sendStatus(204);
});
+1 -1
View File
@@ -9,7 +9,7 @@ export interface GuildCreateSchema {
/**
* @maxLength 100
*/
name: string;
name?: string;
region?: string;
icon?: string | null;
channels?: ChannelModifySchema[];
@@ -4,6 +4,22 @@ import { route } from "@fosscord/api";
const router: Router = Router();
const skus = new Map([
[
"978380684370378762",
[
{
id: "978380692553465866",
name: "Nitro Lite Monthly",
interval: 1,
interval_count: 1,
tag_inclusive: true,
sku_id: "978380684370378762",
currency: "usd",
price: 0,
price_tier: null,
}
]
],
[
"521842865731534868",
[