createInviteCodes method

Future<XRPCResponse<CreatedInviteCodes>> createInviteCodes({
  1. required int codeCount,
  2. required int useCount,
  3. List<String>? forAccounts,
})

Implementation

Future<core.XRPCResponse<CreatedInviteCodes>> createInviteCodes({
  required int codeCount,
  required int useCount,
  List<String>? forAccounts,
}) async =>
    await _ctx.post(
      ns.comAtprotoServerCreateInviteCodes,
      body: {
        'codeCount': codeCount,
        'useCount': useCount,
        'forAccounts': forAccounts,
      },
      to: CreatedInviteCodes.fromJson,
    );