mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-23 06:32:34 +00:00
Implemented invite splashes
This commit is contained in:
1 parent
a95ecf4287
commit
d5db903f78
1 file changed
+2
-1
@@ -44,7 +44,8 @@ router.patch("/", check(GuildUpdateSchema), async (req: Request, res: Response)
|
||||
perms.hasThrow("MANAGE_GUILD");
|
||||
|
||||
if (body.icon) body.icon = await handleFile(`/icons/${guild_id}`, body.icon);
|
||||
if(body.banner) body.banner = await handleFile(`/banners/${guild_id}`, body.banner);
|
||||
if (body.banner) body.banner = await handleFile(`/banners/${guild_id}`, body.banner);
|
||||
if (body.splash) body.banner = await handleFile(`/splashes/${guild_id}`, body.splash);
|
||||
|
||||
const guild = await GuildModel.findOneAndUpdate({ id: guild_id }, body)
|
||||
.populate({ path: "joined_at", match: { id: req.user_id } })
|
||||
|
||||
Reference in new issue
Block a user