Add erkins note

This commit is contained in:
Madeline 2023-04-11 13:19:26 +10:00
parent 7a2a41be3e
commit d865528442
No known key found for this signature in database
GPG Key ID: 1958E017C36F2E47

View File

@ -42,6 +42,7 @@ router.patch(
!member.roles.map((role) => role.id).includes(role_id),
);
// TODO (erkin): have a bulk add/remove function that adds the roles in a single txn
await Promise.all([
...add.map((member) =>
Member.addRole(member.id, guild_id, role_id),