createInviteCode method

Future<XRPCResponse<CreatedInviteCode>> createInviteCode({
  1. required int useCount,
  2. String? forAccount,
})

Implementation

Future<core.XRPCResponse<CreatedInviteCode>> createInviteCode({
  required int useCount,
  String? forAccount,
}) async =>
    await _ctx.post(
      ns.comAtprotoServerCreateInviteCode,
      body: {
        'useCount': useCount,
        'forAccount': forAccount,
      },
      to: CreatedInviteCode.fromJson,
    );