Skip to content

Commit c81cc8a

Browse files
Fix oauth2 not setting role colors
1 parent 673d990 commit c81cc8a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/api/routes/oauth2/authorize.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,8 @@ router.post(
221221
name: app.name,
222222
permissions: body.permissions,
223223
guild_id: body.guild_id,
224+
color: 0,
225+
colors: { primary_color: 0 },
224226
});
225227
await role.save();
226228
await Member.addRole(body.guild_id, req.user_id, role.id);

0 commit comments

Comments
 (0)