diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-07-10 14:18:49 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-07-10 14:18:49 +1000 |
commit | 5612a47b4974be7e144f8d3bb99daf7d2abbf259 (patch) | |
tree | d23afaaab77f864db62d9b2c3bca1fd92295db9f | |
parent | Fix username/discrim changing (diff) | |
download | server-5612a47b4974be7e144f8d3bb99daf7d2abbf259.tar.xz |
Try to allow role icons to be removed
-rw-r--r-- | api/src/routes/guilds/#guild_id/roles/#role_id/index.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/api/src/routes/guilds/#guild_id/roles/#role_id/index.ts b/api/src/routes/guilds/#guild_id/roles/#role_id/index.ts index 2ad01682..f3d707e0 100644 --- a/api/src/routes/guilds/#guild_id/roles/#role_id/index.ts +++ b/api/src/routes/guilds/#guild_id/roles/#role_id/index.ts @@ -42,6 +42,7 @@ router.patch("/", route({ body: "RoleModifySchema", permission: "MANAGE_ROLES" } const body = req.body as RoleModifySchema; if (body.icon) body.icon = await handleFile(`/role-icons/${role_id}`, body.icon as string); + else body.icon = undefined; const role = new Role({ ...body, |