summary refs log tree commit diff
path: root/api
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-07-07 16:32:55 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-07-07 16:32:55 +1000
commit980df82f872db59c1c67e7e89b52f97cbd44a613 (patch)
tree563fa497b379bf831b3a8bb9720d1b31900c950d /api
parentMerge branch 'feat/latestWebClient' into slowcord (diff)
downloadserver-980df82f872db59c1c67e7e89b52f97cbd44a613.tar.xz
Fix role icons not deleting?
Diffstat (limited to 'api')
-rw-r--r--api/src/routes/guilds/#guild_id/roles/#role_id/index.ts1
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,