From d865528442769b3d5683b75d0872b01da2b5374f Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Tue, 11 Apr 2023 13:19:26 +1000 Subject: Add erkins note --- src/api/routes/guilds/#guild_id/roles/#role_id/members.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/api/routes/guilds/#guild_id/roles/#role_id/members.ts b/src/api/routes/guilds/#guild_id/roles/#role_id/members.ts index 6b9fad9c..705848aa 100644 --- a/src/api/routes/guilds/#guild_id/roles/#role_id/members.ts +++ b/src/api/routes/guilds/#guild_id/roles/#role_id/members.ts @@ -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), -- cgit 1.4.1