chatBskyGroupCreateJoinLink function

Future<XRPCResponse<GroupCreateJoinLinkOutput>> chatBskyGroupCreateJoinLink({
  1. required String convoId,
  2. bool? requireApproval,
  3. required JoinRule joinRule,
  4. required ServiceContext $ctx,
  5. String? $service,
  6. Map<String, String>? $headers,
  7. Map<String, String>? $unknown,
})

NOTE: This is under active development and should be considered unstable while this note is here. Creates a join link for the group convo.

Implementation

Future<XRPCResponse<GroupCreateJoinLinkOutput>> chatBskyGroupCreateJoinLink({
  required String convoId,
  bool? requireApproval,
  required JoinRule joinRule,
  required ServiceContext $ctx,
  String? $service,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.post(
  ns.chatBskyGroupCreateJoinLink,
  service: $service,
  headers: {'Content-type': 'application/json', ...?$headers},
  body: {
    ...?$unknown,
    'convoId': convoId,
    if (requireApproval != null) 'requireApproval': requireApproval,
    'joinRule': joinRule.toJson(),
  },
  to: const GroupCreateJoinLinkOutputConverter().fromJson,
);