summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-06-28 01:25:07 +0200
committerRory& <root@rory.gay>2026-06-28 01:25:07 +0200
commite088421b213913c68bb771e3f9fb1c7c8141386f (patch)
tree08cc25b5fa27e633ce53d429d915123ef4c982d3
parentFix oauth2 not setting role colors (diff)
downloadserver-ts-e088421b213913c68bb771e3f9fb1c7c8141386f.tar.xz
More oauth2 role thingies
-rw-r--r--src/api/routes/oauth2/authorize.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/api/routes/oauth2/authorize.ts b/src/api/routes/oauth2/authorize.ts

index 72351042..38a699b8 100644 --- a/src/api/routes/oauth2/authorize.ts +++ b/src/api/routes/oauth2/authorize.ts
@@ -223,6 +223,9 @@ router.post( guild_id: body.guild_id, color: 0, colors: { primary_color: 0 }, + hoist: false, + mentionable: false, + position: 1, // TODO: calculate actual position and move stuff around }); await role.save(); await Member.addRole(body.guild_id, req.user_id, role.id);