chatBskyGroupAddMembers function

Future<XRPCResponse<GroupAddMembersOutput>> chatBskyGroupAddMembers({
  1. required String convoId,
  2. required List<String> members,
  3. required ServiceContext $ctx,
  4. String? $service,
  5. Map<String, String>? $headers,
  6. Map<String, String>? $unknown,
})

NOTE: This is under active development and should be considered unstable while this note is here. Adds members to a group. The members are added in 'request' status, so they have to accept it. This creates convo memberships.

Implementation

Future<XRPCResponse<GroupAddMembersOutput>> chatBskyGroupAddMembers({
  required String convoId,
  required List<String> members,
  required ServiceContext $ctx,
  String? $service,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.post(
  ns.chatBskyGroupAddMembers,
  service: $service,
  headers: {'Content-type': 'application/json', ...?$headers},
  body: {...?$unknown, 'convoId': convoId, 'members': members},
  to: const GroupAddMembersOutputConverter().fromJson,
);