mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-28 11:54:35 +00:00
Welcome screen
This commit is contained in:
+3
-1
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user