mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-22 10:42:34 +00:00
More oauth2 role thingies
This commit is contained in:
1 parent
c81cc8ae9d
commit
e088421b21
1 file changed
+3
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user